gno/bin/gsh
tribby 963a33c4bf Changes for gsh version 2.0d5:
Add quotes around null parameters from the command line so they will be
parsed properly (resolves PR#84).

Output piped to an unfound command caused gsh to terminate, due to an
interface change to the GNO 2.0.6 version of getpgrp(2): it now returns the
process group of the caller.  To get the process group number for the
pid passed as a parameter pid, the call has to be made to _getpgrp(2).
In addition to fixing invoke.asm, updates were also made in jobs.asm.

When directory stack is full, pushd, reports a new error message: 'pushd:
Directory stack full'.  (Previously, 50 pushds would cause a crash.)

When parameter passed to "pushd +n" is <= 0, report a new error message:
'pushd: Invalid number'. (Previously, tried to chdir to the parameter.)

When a command appends to stderr (e.g., echo test >>&/tmp/err), stdin was
closed, due to errappend being defined as pipefds+2 rather than pipefds+4
in cmd.asm.

When there was an error reading stdin, gsh went into an infinite loop of
beeping and requesting more input. Changed getchar (in stdio.asm) and
GetCmdLine (in edit.asm) to report the error and terminate.

Code in cmd.asm set and reset handler for signal SIGSTOP (17). This makes
no sense, since there cannot be a handler for SIGSTOP. This was changed
to set and reset signal SIGTSTP (18) since that handler is used by gsh.

The error message "specify a command before redirecting" was never
caught by the invoke() subroutine because the next higher routine,
command(), checked for argv==0 before calling invoke(). The error
message was moved into command().
1998-10-26 17:04:51 +00:00
..
M Initial checkin of gsh v1.1 as provided by Tony Diaz. 1997-11-18 05:31:00 +00:00
man gsh.1: 1998-06-04 03:11:28 +00:00
tests Initial checkin of gsh v1.1 as provided by Tony Diaz. 1997-11-18 05:31:00 +00:00
alias.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
bufpool.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
builtin.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
cmd.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
dir.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
edit.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
expand.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
gsh.mac Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
gsh.rez Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
hash.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
history.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
invoke.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
jobs.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
m16.gno Initial checkin of gsh v1.1 as provided by Tony Diaz. 1997-11-18 05:31:00 +00:00
main.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
Makefile Replaced last of old shell calls with their newer counterparts. This 1998-08-03 17:30:30 +00:00
mdb.mac Initial checkin of gsh v1.1 as provided by Tony Diaz. 1997-11-18 05:31:00 +00:00
mmdebug.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
oldorca.asm Initial checkin of gsh v1.1 as provided by Tony Diaz. 1997-11-18 05:31:00 +00:00
orca.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
prompt.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
shell.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
shellutil.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
shellvar.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
stdio.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
sv.asm Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves 1998-09-08 16:53:14 +00:00
term.asm Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
To.Do Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00
UpdateLog Changes for gsh version 2.0d5: 1998-10-26 17:04:51 +00:00