summaryrefslogtreecommitdiff
path: root/bin/sh/parser.c
AgeCommit message (Collapse)Author
1996-12-14-Wall'ing.Michael Shalayeff
1996-12-01Parser fix from NetBSD (christos)Todd C. Miller
- ! was only recognized in the beginning of pipelines. Now we are recognizing it everywhere like ksh, so the following works. ! if [ a = b ]; then ! echo c && ! true; else ! echo d; fi
1996-10-20Sync with NetBSD. Adds better POSIX compliance amongst others.Todd C. Miller
1996-05-21do newline correct inside ``, netbsd pr#2384Theo de Raadt
1996-03-08From NetBSD:Niklas Hallqvist
- parser.c: Fix prompting in old style backquote expansion. Fixes PR/2139 and many user complaints why the shell hangs in echo "`" - eval.c: Fix exitstatus invalid resetting in `if' statements were: if (exit 3); then echo foo $? else echo bar $? fi printed 'bar 0' instead of bar 3 Return zero status if `else' clause is empty.
1995-12-14update from netbsd, including:Theo de Raadt
Fix PR/1760, where 'cd -' before any other command could cause a reference to an uninitialized pointer. Use getcwd() to get the current working directory, instead of forking /bin/pwd [per Scott's suggestion]
1995-10-18initial import of NetBSD treeTheo de Raadt