Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add rcsid. Spelling. | charnier | 1998-05-18 | 27 | -79/+127 |
| | |||||
* | Backed out previous backout. Put y.tab.h back in SRCS. | bde | 1998-05-06 | 1 | -10/+6 |
| | |||||
* | Backed out previous commit. It was tested, but not for the case where | bde | 1998-05-05 | 1 | -4/+8 |
| | | | | | a separate object tree doesn't exist. Crufty makefiles will have to put y.tab.h in SRCS so that we know not to create foo.h from foo.y. | ||||
* | Fixed races in `make -jN' using new yacc rules. | bde | 1998-05-04 | 1 | -8/+4 |
| | |||||
* | When calling a shell function, remember whether exit status is tested. | cracauer | 1998-05-04 | 1 | -2/+5 |
| | | | | | | This is needed for the '-e' option. See the PR for more details. PR: 6047 Reviewed by: PR submitter, silence on review request. | ||||
* | Backed out most of rev.1.19 (explicit dependencies of object files | bde | 1998-04-26 | 1 | -19/+1 |
| | | | | on generated headers). This is now handled generally in bsd.prog.mk. | ||||
* | Explicitly describe the rules the shell uses to search for a file | jdp | 1998-02-12 | 1 | -1/+10 |
| | | | | sourced by the "." command. | ||||
* | Back out my previous attempt to fix SIGINT/SIGTERM behaviour | cracauer | 1998-02-06 | 1 | -16/+0 |
| | |||||
* | Fix handling of SIGINT/SIGQUIT for foreground subprocesses. Most | cracauer | 1998-02-06 | 1 | -1/+17 |
| | | | | | | | | | | | | | | | | urgent need is when you run sh around a program that intentionally uses SIGQUIT/SIGINT for asynchronous events, i.e. $EDITOR started from system(2), like many mailers do. This fixes PR bin/1206 and possibly bin/4241. The solution committed has been tested for a large number of possible cases (see recent discussion on cvs-committers). I completed a make world, made sure 'make world' is interruptable and used the changed /bin/sh as a login shell all day, including job control and using SIGQUIT-catching programs (to write this message :-). PR: bin/1206 Reviewed by: discussion on cvs-commiters | ||||
* | Correct a bogon in an example. | steve | 1998-01-02 | 1 | -2/+2 |
| | | | | | PR: 5415 Submitted by: Sergei S. Laskavy <laskavy@pc759.cs.msu.su> | ||||
* | Added $Id$. | alex | 1997-12-29 | 1 | -0/+2 |
| | |||||
* | Remove simultaneous include of <sys/param.h> and <sys/types.h>. | eivind | 1997-12-10 | 1 | -2/+1 |
| | | | | | Reorder includes to be alphabetical some places since I already was in here. | ||||
* | Document the exit status for a command that was terminated by a | jdp | 1997-11-12 | 1 | -1/+5 |
| | | | | signal. | ||||
* | Fixed some type and value mismatches. setsignal() returned a bogusly | bde | 1997-11-10 | 2 | -12/+11 |
| | | | | | | cast value that was always ignored. Rev.1.9 of trap.c made this more bogus by returning a semantically different value after calling siginterrupt(). Avoid these problems by not returning a value. | ||||
* | 1) Fix longstanding bug: | ache | 1997-11-05 | 1 | -3/+10 |
| | | | | | | | | | | | | | | trap 'echo xxx' 1 2 3 15 read x is not interrupted by ^C (due to restartable read syscall) and must be interrupted per POSIX Worse case: read -t 5 x hangs forever after ^C pressed (supposed to timeout after 5 secs) Fixed by adding siginterrupt(signo, 1) after catch handler installed 2) Do not reinstall sighandler immediately after it is called, BSD do it for us | ||||
* | Changes to support full make parallelism (-j<n>) in the world | jkh | 1997-10-05 | 1 | -6/+9 |
| | | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su> | ||||
* | Add the '-t timeout' option to the 'read' builtin. This allows the | msmith | 1997-09-29 | 2 | -6/+72 |
| | | | | | | | | 'read' command to return an error if the user fails to supply any input withink a given time period. The behaviour of this option is similar to that of the like-named option in ksh93. Reviewed by: joerg | ||||
* | PR: docs/4449 | wosch | 1997-09-13 | 1 | -1/+6 |
| | | | | | | The -c flag is not documented in the sh(1) manapge. Submitted by: adrian@virginia.edu | ||||
* | Restored clobbered parts of rev.1.15 (build intermediate object files | bde | 1997-08-25 | 1 | -2/+14 |
| | | | | for tools). | ||||
* | Make all status values an integral type and use | steve | 1997-08-18 | 2 | -7/+8 |
| | | | | pid_t when referring to process IDs. | ||||
* | Back out previous fix - this bug's got diplomatic immunity as a registered | jkh | 1997-06-19 | 1 | -3/+1 |
| | | | | political issue. | ||||
* | >Number: 3780 | jkh | 1997-06-19 | 1 | -1/+3 |
| | | | | | | | | >Category: bin >Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $? PR: 3780 Submitted by: sanewo@ba2.so-net.or.jp | ||||
* | Now [^abc] means the same as [!abc] like bash and *csh already does | ache | 1997-06-06 | 1 | -4/+4 |
| | |||||
* | Make sh(1) less aware of the bit fields returned by wait by | steve | 1997-05-24 | 1 | -33/+42 |
| | | | | | | | using the WIF* macros in sys/wait.h. PR: bin/3668 Submitted by: dholland@eecs.harvard.edu | ||||
* | Remove y.tab.h from the beforedepend target. Also add a | steve | 1997-05-21 | 1 | -2/+3 |
| | | | | | | rule that shows the dependency of arith_lex.[co] on y.tab.h. Suggested by: Bruce Evans <bde@zeta.org.au> | ||||
* | Add explicit y.tab.h rule so that 'make depend clean all' does | steve | 1997-05-19 | 1 | -2/+4 |
| | | | | not fail with an "don't know how to make y.tab.h" error. | ||||
* | Use the __unused attribute where warranted. | steve | 1997-05-19 | 11 | -47/+47 |
| | |||||
* | Miscellaneous sorting and addition of rules for object files that | steve | 1997-05-19 | 1 | -11/+25 |
| | | | | | | depend on generated headers. Reviewed by: Bruce Evans <bde@zeta.org.au> | ||||
* | Revise the section that explains how to protect parts of an $ENV script | steve | 1997-05-07 | 1 | -20/+12 |
| | | | | | | from being executed in non-interactive mode. Suggested and Reviewed by: Brian Somers <brian@freebsd.org> | ||||
* | Don't source $ENV unless this is an interactive shell. | steve | 1997-05-05 | 1 | -2/+2 |
| | |||||
* | Turn on the new type builtin. | steve | 1997-04-28 | 1 | -1/+2 |
| | |||||
* | Sync with NetBSD's revision 1.29 of this file. | steve | 1997-04-28 | 1 | -27/+55 |
| | | | | Obtained from: NetBSD | ||||
* | Remove an extra semicolon and nuke register keyword usage. | steve | 1997-04-28 | 1 | -7/+7 |
| | |||||
* | Fix redirection of unopened file descriptors and nuke register | steve | 1997-04-28 | 1 | -9/+27 |
| | | | | | | keyword usage. Obtained from: NetBSD | ||||
* | Revert changes from rev 1.16 to 1.17 for now. Closes PR 2879. | steve | 1997-04-28 | 1 | -49/+29 |
| | |||||
* | mdoc-ify and cleanup UNIMPLEMENTED messages. Closes PR 2880. | steve | 1997-04-28 | 1 | -735/+587 |
| | |||||
* | Reorder declarations slightly. | steve | 1997-04-28 | 1 | -3/+3 |
| | |||||
* | Avoid a possible NULL pointer dereference, nuke register usage, | steve | 1997-04-28 | 1 | -6/+5 |
| | | | | | | and remove an unnecessary reset. Obtained from: NetBSD | ||||
* | Nuke register keyword usage, #if -> #ifdef, and avoid void * | steve | 1997-04-28 | 2 | -13/+13 |
| | | | | | | arithmetic. Obtained from: NetBSD | ||||
* | Nuke register keyword usage, rename pread to preadfd, and open | steve | 1997-04-28 | 1 | -7/+9 |
| | | | | | | input files FD_CLOEXEC. Obtained from: NetBSD | ||||
* | When NO_HISTORY is defined and the history command is used | steve | 1997-04-28 | 1 | -3/+16 |
| | | | | | | show an error message. Inspired by: NetBSD | ||||
* | Add a type builtin and nuke register keyword usage. | steve | 1997-04-28 | 2 | -5/+81 |
| | | | | Obtained from: NetBSD | ||||
* | Nuke register keyword usage and #if -> #ifdef. | steve | 1997-04-28 | 14 | -65/+65 |
| | | | | Obtained from: NetBSD | ||||
* | Shamelessly pilfer most of NetBSD's Makefile so that the | steve | 1997-04-28 | 1 | -28/+16 |
| | | | | | | | | problem with 'make -j n' and no .depend file goes away. I think Bruce mentioned this somewhere on one of the mailing lists. Obtained from: NetBSD | ||||
* | compare return value from getopt against -1 rather than EOF, per the final | imp | 1997-03-28 | 1 | -2/+2 |
| | | | | posix standard on the topic. | ||||
* | Revert $FreeBSD$ to $Id$ | peter | 1997-02-22 | 68 | -68/+68 |
| | |||||
* | Fix a expansion bug that caused the result of `echo $((1 << 30))` | steve | 1997-02-16 | 1 | -2/+5 |
| | | | | | | to get truncated. Submitted by: bde | ||||
* | Make the long-awaited change from $Id$ to $FreeBSD$ | jkh | 1997-01-14 | 68 | -68/+68 |
| | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. | ||||
* | Fix a problem that caused some foreground pipelines to die with: | steve | 1997-01-06 | 1 | -3/+2 |
| | | | | | | tcsetpgrp failed, errno=1 Discovered and Reviewed by: joerg | ||||
* | Make sh(1) think and be in the same place at the same time. This closes | steve | 1997-01-04 | 1 | -15/+11 |
| | | | | PR#2331: strange output of sh's pwd on symlinked directories. |