Project

General

Profile

Bug #5361

closed

/bset & returns an incorrect error

Added by westor (GR) 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/18/2021
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

It seems when trying to set a binvar without an name returns an error, but changing & to &letter it works.

Example:

alias test {
  set -l %icon $qt($scriptdirCube.ico)
  if (!$isfile(%icon)) {
    bset -t & 1 Y2BgBEIBAQYgUGDIYGFgEAOyNIBYACzCAJQFkQwMDiwMGOD///+MtMBrt+9oRMak6steN+U/MiZkDrq+zMPL/6c/PPSfGHOw6YNhdP3I5sD0Y9NHSD8II+vHpnco63/x8+v/vS/uwjGx+kH6YBhZPzZzkPXPO7sHRS8u/SDce2wTin6YGejm4NKHrheXOaTow2UOqfpIxaASgBIMAA==
    if ($decode(&,bm)) && ($decompress(&,bm1)) && ($sha1(&,1) == ae378536e1f7af22066cb722dd04739a5a7fe8a4) bwrite %icon 0 &
  }
}

- Thanks!

#1

Updated by westor (GR) 3 months ago

Or a better example:

//bset -t & 1 test lol | echo -a IS: $bvar(&,1-).text

#2

Updated by Per Amundsen 3 months ago

  • Status changed from New to Resolved
#3

Updated by Per Amundsen 3 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF