Bug: if either the 'nolog' or the 'debug' option is set, trying to
expand "$-" silently aborts parsing of an entire argument.
$ dash -o nolog -c 'set -fuC; echo "|$- are the options|"; \
set +o nolog; echo "|$- are the options|"'
|
|uCf are the options|
$ dash -o debug -c 'set -fuC; echo "|$- are the options|"; \
set +o debug; echo "|$- are the options|"'
|
|uCf are the options|
Also, though the 'nolog' option is POSIX[*] and (apart from this bug)
acts like POSIX, it's not documented the dash man page.
- Martijn
[*] "nolog: Prevent the entry of function definitions into the command
history; see Command History List."
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_25_03
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html