summaryrefslogtreecommitdiff
path: root/bin/sh
AgeCommit message (Collapse)Author
1997-01-05HOSTCC; from rahndsTheo de Raadt
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-11-24Fix truncation of options list in getopts builtin.Todd C. Miller
Noticed by Matthieu Herrb <Mathieu.Herrb@mipnet.fr>
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-11-03sh can now be started in a directory whose fully qualified pathnamebitblt
is between 255 and MAXPATHLEN-1 characters.
1996-11-02Fix my fix!Todd C. Miller
1996-11-02Fix eval of $1, a typo, and a thinko.Todd C. Miller
1996-10-20Sync with NetBSD. Adds better POSIX compliance amongst others.Todd C. Miller
1996-10-12use HOSTCC; from daleTheo de Raadt
1996-09-27unused sample way of getting around type missing in ash; from woods@weird.comTheo de Raadt
1996-09-16/tmp//_shXXXXXX -> /tmp/_shXXXXXXTodd C. Miller
1996-09-16These should always be static.Jason Downs
1996-09-15sprintf -> snprintf paranoiaTodd C. Miller
1996-09-15sprintf -> snprintf paranoiaTodd C. Miller
1996-09-15document ``ulimit'' builtin.Todd C. Miller
1996-08-22__OpenBSD__Theo de Raadt
1996-08-02zap getopt() case of -?, come on, it is the default!Theo de Raadt
1996-06-23update rcsidTheo de Raadt
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-05-22Fix growstackblock() 'newlen' calculations:Theo de Raadt
(1) it needs to be ALIGNed for both halves of the 'if,' and (2) if you're going to claim that you now have ALIGN(newlen) bytes left, you should have actually allocated ALIGN(newlen), rather than just 'newlen' bytes.
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.
1996-03-03From NetBSD:Niklas Hallqvist
Changed so that INTOFF/INTON are paired in getpwd(). From Matthias Pfaller <leo@marco.de>. Fixes PR #2130.
1996-03-03From NetBSD:Niklas Hallqvist
Fix problems with the way init.o is built: * Prevent gratuitous rebuilds when nothing has changed. * Make sure it is rebuilt if a .h file is updated.
1996-02-17From netbsd:Niklas Hallqvist
Fix PR/2070: Ksh style variable modifiers were broken in /bin/sh, from enami tsugutomo
1995-12-17do not treat symbolic links special; from cgd@netbsd.org; netbsd pr#1776Theo de Raadt
1995-12-14whoops, add thisTheo de Raadt
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-11-22handle "cd -" causing crash if used as first sh command; from ↵Theo de Raadt
scottr@Plexus.COM; netbsd pr#1760
1995-10-18initial import of NetBSD treeTheo de Raadt