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
That occurs seems because Nash defines a concatenate operator as + and makes the statement expr 1 + 2 ambiguous. By another hand, If I escape the operator as a string I got the expected result:
λ> expr 1 "+" 2
3
λ> expr 1 "+" 2 "+" 3
6
λ>
I don't know for sure if this is a feature or it is a bug, but I thought that would be good reporting this.
The text was updated successfully, but these errors were encountered:
ryukinix
changed the title
Unexpected behavior of expr inside of nash: arguments are concatenated
Unexpected behavior of expr in nash: arguments are concatenated
Aug 27, 2018
ryukinix
changed the title
Unexpected behavior of expr in nash: arguments are concatenated
Arguments of expr sum are concatenated in nash
Aug 27, 2018
Trying evaluating a simple sum using the
expr
from gnu coreutils inside of nash shell I got this weird behavior:That occurs seems because
Nash
defines a concatenate operator as+
and makes the statementexpr 1 + 2
ambiguous. By another hand, If I escape the operator as a string I got the expected result:I don't know for sure if this is a feature or it is a bug, but I thought that would be good reporting this.
The text was updated successfully, but these errors were encountered: