On 3/28/17 12:43 PM, Torka Noda wrote: > Actually, shouldn't `bash -s`, without any command fed to its > stdin, exit immediately, anyway...?
No. Why? It reads and executes commands from its standard input, which is in most cases, the terminal. However, `bash -s foo </dev/null' should exit immediately. > Plus there is > apparently no way to get the full list of arguments used to > call Bash (although some can be found with `set` or `shopt`), > even after initialization, which seems to me more problematic, > although if this was never the case, the need probably isn't > that strong for it either... No Bourne-style shell provides this feature. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/