hush: do not drop backslash from eval 'echo ok\'
newer bash does not drop it, most other shells too function old new delta unbackslash 39 57 +18 parse_stream 2753 2751 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 18/-2) Total: 16 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -203,7 +203,7 @@
|
||||
* TODO:
|
||||
* singleword+noglob expansion:
|
||||
* v='a b'; [[ $v = 'a b' ]]; echo 0:$?
|
||||
* [[ /bin/* ]]; echo 0:$?
|
||||
* [[ /bin/n* ]]; echo 0:$?
|
||||
* -a/-o are not AND/OR ops! (they are just strings)
|
||||
* quoting needs to be considered (-f is an operator, "-f" and ""-f are not; etc)
|
||||
* = is glob match operator, not equality operator: STR = GLOB
|
||||
|
Reference in New Issue
Block a user