hush: tighten up "for" variable name check.
Add TODOs. Disable redir4.right part where we differ from bash. It is not a bug per standards. Add a few tests, one is in hush-bugs section: and_or_and_backgrounding.right. It will likely bite users in real world usage.
This commit is contained in:
10
shell/hush_test/hush-misc/for_with_bslashes.tests
Executable file
10
shell/hush_test/hush-misc/for_with_bslashes.tests
Executable file
@@ -0,0 +1,10 @@
|
||||
# UNFIXED BUG.
|
||||
# commented-out words contain ^C character.
|
||||
# It's a SPECIAL_VAR_SYMBOL, for now hush does not escape it.
|
||||
# When it is fixed, update this test.
|
||||
|
||||
for a in 'a' 'b\c' 'b\\c' 'b"c' "b'c" 'b$c' 'b`true`c' ### 'b#c'
|
||||
do
|
||||
echo $a
|
||||
done
|
||||
echo Zero:$?
|
Reference in New Issue
Block a user