summaryrefslogtreecommitdiff
path: root/bin/sh/eval.c
AgeCommit message (Collapse)Author
1996-11-24Sync w/ NetBSD (christos)Todd C. Miller
Fix miscellaneous getopts problems: - the 3 argument version of getopts would not reset properly - OPTARG did not get cleared after a non argument option was found - OPTIND was not set properly after a non argument option.
1996-10-20Sync with NetBSD. Adds better POSIX compliance amongst others.Todd C. Miller
1996-06-18from netbsd; Fix PR/2504: return with no args returns 0 instead ofTheo de Raadt
the return value of the previous command in functions
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-10-18initial import of NetBSD treeTheo de Raadt