Commit Graph

101 Commits

Author SHA1 Message Date
tribby
1dc5497309 Added startup protocol as requested by Devin Reed (PR#78) and Steve Reeves
(PR#85, PR#86):
   For login shells (command line starts with '-'),
	If $PATH doesn't start with ':' or contain a space,
	   change all ":" to " ".
	source /etc/glogin
	source $HOME/glogin
$HOME/gshrc is sourced afterward for both login and non-login shells.

Don't the print number of hashed commands (from "rehash") until all
initialization is completed.

Only pass exported environment variables to child processes, and prevent child
processes from changing parent's environment.

A null command followed by a redirection of stdout, for example
  > /tmp/list
would cause an error message "<garbage> not found" due to incorrect
setting of command buffer pointer.

Filename completion did not work following ">&" or ">" without a trailing
space.

Entabbed all the asm files, saving more than 36,000 bytes.
1998-09-08 16:53:14 +00:00
tribby
2e0ebb5392 Replaced last of old shell calls with their newer counterparts. This
removed the need for p-string routines, so they were removed. Also
removed alloc256/free256 and associated data structures.

In removing calls, found instances in pwd & prefix commands and prompt
handler where current directory name was assumed to be < 256 characters;
recoded to use a flexible buffer size.

Updated and expanded mmdebug.asm routines that perform error checking on
memory management calls. Added macros ~NEW and ~DISPOSE that invoke either
the real or debug routines.

Fixed call to read $TERM variable's length to fix PR#81.

Removed echo of data when setting value of $< in expandvars (expand.asm).
The characters are echoed as they are typed and do not need to be reprinted
on stdout after carriage-return is typed.

Added error checking to the various flavors of prefix (just like cd):
  - Verify 2nd parameter is a valid directory before setting.
  - Verify 1st parameter < 32 before displaying or setting.
1998-08-03 17:30:30 +00:00
tribby
d534981038 Changed many invocations from old shell interface routines (Read_Variable,
Set_Variable, Export, etc.) to new ones (ReadVariableGS, SetGS, ExportGS,
etc.) in many places; there are still a few more to change.  This change
removed the 256-character limit on strings retrieved by these routines,
such as the value of environment variables. (PR # 9).

At startup do not set $TERM to gnocon if it is already set.

Removed the df command (from builtin.asm).

Defined macro incad to increment a 4-byte address, checking for overflow;
replaced instances of "inc ptr" with "incad ptr".

Changed column offset table to use a 1-word rather than 1-byte entry. This
resolves PR#14 (hash wouldn't print beyond first 256 filenames).

Fixed defect in unalias (alias.asm) where the double quote portion of the
scanner would look for a terminating single quote. This resolves PR#69.

Changed default order for copying files in $PATH dirs into executable list,
so earlier paths files are found first.

Added environment variable flag $OLDPATHMODE to make gsh behave in the old
(backwards order) way when necessary.

Discard duplicate filenames when hashing.

Fix PR#73: directory in $PATH with escaped space (\ ) is not searched.
1998-07-20 16:23:11 +00:00
tribby
01902c1b91 Major changes to gsh with this checkin:
* When ~ is parsed and next character is a delimiter, make sure contents
   of expanded $HOME match the user's delimiter.

 * When wildcard patterns don't match, rather than terminating the command
   gsh now prints "No match: <pattern> ignored" and passes the command line
   minus the unmatched patterns on to be executed.

 * Modified echo command so it doesn't add a blank to the end.

 * Make "clear" and "source" built-ins non-forked commands.  Unforking
   "source" allows prefixes to be set in files that are sourced.

 * Add loop to parse a single command (removing leading whitespace) before
   sending it off to be expanded and executed. Skip null lines and comments
   at this level. This allows later commands that depend upon variables set
   in the 1st command to work; e.g.: set t_num=1 ; echo "Test number $t_num"
   Also fixes problems seen when tab was first character of multiple lines.

 * Initialize environment variable flags at startup (for echo, nodirexec,
   nonewline, noglob, nobeep, pushdsilent, term, and ignoreeof). Set
   flag when env var is set in upper or lower case (formerly, only worked
   with lower case).

 * Lots of places two-word addresses are incremented using inc, without
   checking for overflow into the high-order word. As these are discovered,
   they are changed to use adc on both words.


See file UpdateLog for detailed list of changes.
1998-06-30 17:26:04 +00:00
stever
4bd91df5de Fixed "ls -s" kilobyte calculation. See PR#48 for details. 1998-06-17 07:00:27 +00:00
stever
a43a7e27fd Trying a test cvs checkin. 1998-06-17 05:13:38 +00:00
gdr-ftp
94012d9889 edit.c:
- initial checkin
1998-06-12 05:06:24 +00:00
tribby
cd8bfae836 Create *.mac files from gsh.mac via Makefile.
Added direct-page/stack data segment of size 2048 to main.asm.  It is
initialized to be filled with "?" characters, so that it can be examined
to see how much space is actually being used.
1998-06-09 16:22:56 +00:00
gdr-ftp
c39b230a61 gsh.1:
- initial checkin.  This is mainly just a pointer to the reference
	  manual.
1998-06-04 03:11:28 +00:00
gdr-ftp
69723f10b6 Makefile:
- except for main.root, delete all created *.root files just after
	  they're made.  This avoids duplicate symbols in the link step.
1998-05-30 17:21:40 +00:00
tribby
068fd5bb72 Change call of execve to _execve. 1998-05-11 19:18:43 +00:00
gdr-ftp
f6ad5e32aa To.Do, UpdateLog:
Added explanation of the (minor) changes made in the initial
	v2.0.6 checkin, and what still needs to be done.

UpdateLog:
	Minor formatting change on some lines.

link.script, mods:
	These files are obsolete.
1998-04-28 05:51:26 +00:00
gdr-ftp
d2efd0151f Initial checkin of man pages for some of the gsh builtin commands.
Not all builtins are represented here.  Some information (such as
a dependancy on the 31/ prefix) is probably out of date, too.
1998-04-28 05:18:13 +00:00
gdr-ftp
cf2e1b8db9 dotests:
- updated paths to sed and the split binary under test
1998-04-28 05:08:38 +00:00
gdr-ftp
61474a874f This checkin contains only enough changes that gsh is able to assemble
and link.  However, it does not work yet and thus still needs work.

The *.asm files have had the following common changes:
	- 'keep' lines were eliminated
	- the 'mcopy' now takes the macro from the /obj/gno/bin/gsh
	  directory.  This is in anticipation of having the macro
	  files generated from a single source file; there is a large
	  amount of duplication.  For the moment, the makefile merely
	  copies the old macro files from the "M" directory to the
	  /obj/gno/bin/gsh directory.
	- start each file with a dummy routine so that the source
	  code winds up in the *.o rather than the *.root file.
	- added the 'setcom 60' directive; there were many source
	  lines that were otherwise getting truncated.

The makefile is a complete rewrite.
1998-04-24 15:38:47 +00:00
gdr-ftp
e72e1c891f Initial checkin of what is believed to be tar v2.0. There was a
tar v2.0.1 binary distributed on the 'net that claimed to have fixed
an unspecified bug in this version, but neither the sources nor
the originator of that fix are available.

It may be appropriate to completely replace this implementation.
1998-04-10 19:30:29 +00:00
gdr-ftp
ade81f0a94 Initial checkin of the GNO v2.0.4 strings(1) util. No changes yet for
GNO v2.0.6, other than a GNO-formatted man page was created from the
BSD original.
1998-04-10 19:21:40 +00:00
gdr-ftp
e51b60e6cf These are changes that apparently bring the version number to 2.0.
However, judging from the comments at the top of the source file,
the v2.0 changes were based on more v1.31 rather than 1.4.  When
this program is updated, these diffs should be evaluated.  (Unless,
of course, the current version is tossed in favor of a recent BSD
derivative.)

Here are the comments for the changes from v1.31 to v1.4 that may have
been dropped while moving to v2.0.  See the cvs diffs for details:

> v1.4  - Termcap support has been added and tested.  Look for a soon to be
>         faster version coming soon to a ~/bin directory near you!
>
> v1.32 - uses isatty(x) instead of fstat.  more portable (opinion).
>         soon to be added, TERMCAP support, won't that be nice?
1998-04-10 19:10:01 +00:00
gdr-ftp
861f178146 Initial checkin of more v1.4. I've converted the manual page from
aroff source to nroff source so that it can go into the repository
(binary files are not handled well in cvs).
1998-04-10 19:02:04 +00:00
gdr-ftp
2a99711c42 Initial checkin. These have no modifications for GNO v2.0.6, other
than I assigned version numbers to previous releases.  The most current
was v1.4.  See the comments at the top of du.c.
1998-04-10 18:13:27 +00:00
gdr-ftp
027b934919 This is asm version 1.1 of date(1), also by Phil Vandry. There are still
no GNO v2.0.6 specific changes.
1998-04-10 18:03:48 +00:00
gdr-ftp
98f457ebec Initial checkin of asm version 1.0 of date(1) by Phil Vandry (no changes
for GNO v2.0.6).  I've not checked, but it's unlikely that this is
POSIX compliant.
1998-04-10 18:00:18 +00:00
gdr-ftp
a26d64bf05 The 'fulltests' script is now located in gno/build.tools 1998-03-11 05:28:01 +00:00
gdr-ftp
227a5d4165 Initial checkin. These sources correspond to the GNO v2.0.4 build. 1998-03-11 04:09:28 +00:00
gdr-ftp
fdf0d8d918 Initial checkin; these sources should correspond to those used to
build the GNO v2.0.4 version of this util.
1998-03-11 02:56:04 +00:00
gdr-ftp
784e3de7cd Initial checkin of aroff, binprint, center, less, ls, make, makemake,
passwd, ps, purge, shutdown, stty, upper, and vi.  These sources are
for the versions of the utils shipped with GNO v2.0.4.
1998-03-09 08:30:21 +00:00
gdr-ftp
7c5d013345 Makefile:
abbreviated macros a bit
tests/dotests:
	changed path of $testcmd
tests/fulltests:
	changed path of $trcmd
1998-03-08 17:24:34 +00:00
gdr-ftp
9359f799f6 Makefile, yes.desc:
- change installation point from /usr/bin to /bin
1998-02-19 02:26:07 +00:00
gdr-ftp
59c00c1820 Makefile:
- change installation point from /usr/bin to /bin
1998-02-19 02:25:18 +00:00
gdr-ftp
31f7aea798 Makefile, uname.desc:
- change installation point from /usr/bin to /bin
1998-02-19 02:24:39 +00:00
gdr-ftp
a231c66c6b Makefile:
- added more dependancies
1998-02-19 02:23:42 +00:00
gdr-ftp
10a6b1846a tee.desc:
- updated "Contact", "Where", and "FTP" fields
1998-02-19 02:15:25 +00:00
gdr-ftp
70d9199214 Makefile:
- use single colon on extra dependancies
tail.desc:
	- only give directory for "Where" describe field
1998-02-19 02:14:26 +00:00
gdr-ftp
8ecdfc40b1 Makefile:
- install to /bin directory vice /usr/bin
1998-02-19 02:13:12 +00:00
gdr-ftp
55dc07fbcf Makefile:
- use single colon on extra dependancies
1998-02-19 02:12:18 +00:00
gdr-ftp
b36acdb112 Makefile:
- use single colons on extra dependancies
1998-02-19 02:05:06 +00:00
gdr-ftp
872341978d - initial checkin of uname(1), as submitted by Steve Reeves 1998-02-17 02:50:55 +00:00
gdr-ftp
50bbda4498 - use the libcontrib out of /usr/lib rather than assuming that it's in
the source tree.
1998-02-09 04:02:21 +00:00
gdr-ftp
6f61169e81 Makefile: Cause the GNO- rather than the BSD-formatted manual page to
be installed for the 'install' and 'release' targets.
rcp.1G:   Changed formatting on two lines.
1998-02-09 04:00:37 +00:00
tribby
16f471c5eb Original checkin of kill source code from Dave Tribby 1998-02-09 00:19:25 +00:00
tribby
888214a8bd Original GNO code for kill tests from Dave Tribby 1998-02-08 23:47:18 +00:00
gdr-ftp
509f84b6f9 - fixed up .TH line to use the GNO formatting conventions 1998-01-27 16:02:54 +00:00
gdr-ftp
e51733b21a - the BSD-formatted man page is now rcp.1 and the GNO-formatted man
page is rcp.1G
1998-01-26 05:25:18 +00:00
gdr-ftp
12ab1893b4 - changed (via bsd2man script) nroff source to style understood by the
GNO version of nroff.
1998-01-25 20:56:00 +00:00
taubert
3e68d4bd15 Initial commit of rcp utility 1998-01-24 07:35:26 +00:00
gdr
fae3756359 - initial checkin, (mostly) as submitted by Dave Tribby 1997-12-02 05:15:27 +00:00
gdr
1f1b3ada37 Initial checkin of gsh v1.1 as provided by Tony Diaz. 1997-11-18 05:31:00 +00:00
gdr
fbcef9625a modified for inclusion in GNO base build 1997-10-30 03:35:21 +00:00
gdr
e04dacb065 fixed some formatting 1997-10-30 02:34:54 +00:00
gdr
b9c3d5d27d modified to fit into GNO base build 1997-10-30 02:33:49 +00:00