You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
When you set a variable to the output of a command that outputs the empty string, later checks of the variable's value won't report it as being equal to the empty string.
Expected behaviour:
When the output of a command that emits the empty string is saved to some variable var, $var == "" should be true.
Screenshots:
Platform (please complete the following information):
OS, output from uname -a if supported: 6.9.10-arch1-1
Terminal Emulator: kitty 0.35.2
Murex version, output from version --no-app-name: 6.2.3000
Additional context
Ran into this because it breaks the direnv hook.
I believe the change that causes this was introduced in the most recent release.
Seems to be related to the fact that the data type of the variable is set to *. If I change the command in the screenshot from printf "" to out "", it will behave as expected, presumably because out passes along the fact that the variable is a str through the pipe to set.
The text was updated successfully, but these errors were encountered:
Describe the bug:
When you set a variable to the output of a command that outputs the empty string, later checks of the variable's value won't report it as being equal to the empty string.
Expected behaviour:
When the output of a command that emits the empty string is saved to some variable
var
,$var == ""
should betrue
.Screenshots:
Platform (please complete the following information):
uname -a
if supported: 6.9.10-arch1-1version --no-app-name
: 6.2.3000Additional context
Ran into this because it breaks the direnv hook.
I believe the change that causes this was introduced in the most recent release.
Seems to be related to the fact that the data type of the variable is set to
*
. If I change the command in the screenshot fromprintf ""
toout ""
, it will behave as expected, presumably becauseout
passes along the fact that the variable is astr
through the pipe toset
.The text was updated successfully, but these errors were encountered: