Age | Commit message (Collapse) | Author |
|
|
|
- ! 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
|
|
|
|
|
|
- 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.
|
|
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]
|
|
|