home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / pdksh-4.9-src.lha / GNU / src / amiga / pdksh-4.9 / sh / ChangeLog < prev    next >
Encoding:
Text File  |  1994-05-04  |  13.0 KB  |  396 lines

  1. Tue Aug 31 20:32:54 1993  Simon J. Gerraty  (sjg@zen.void.oz.au)
  2.  
  3.     * patch from meulenbr@prl.phil to avoid problem in findcom().
  4.  
  5. Tue Jun  1 23:36:36 1993  Simon J. Gerraty  (sjg@zen.void.oz.au)
  6.  
  7.     * Quick hack to "handle" multi-line prompts better.
  8.     While in x_vi or x_emacs we use only the last line of the prompt.
  9.  
  10. Tue Jun  1 20:52:04 1993  Devetir Unix section <sgccdux@citecuc.citec.oz.au>
  11.  
  12.     * Serveral bug fixes from: Devetir Unix section 
  13.     <sgccdux@citecuc.citec.oz.au>
  14.  
  15.     Sorry for the delay in these, but they were stuck in transit
  16.     because zen was dead for nearly 3 months!  --sjg
  17.  
  18.     1) In history.c:hist_init(), an extra file descriptor to the
  19.     history file is created which can remain open to the old history
  20.     file when the history needs shrinking.  Thus, the old history file
  21.     survives with no name, and caused me trouble under 386BSD when
  22.     shutting down suddenly (fsck had to clean it up and have another
  23.     re-boot). 
  24.  
  25.     2) In jobs.c:exchild() changed order of setpgid() and tcsetpgrp()
  26.     as 386bsd at least does not allow tcsetpgrp() to an unused
  27.     process group.
  28.  
  29.     3) bug in jobs.c:j_reapchld(), waitpid() can return 0 if there
  30.     are no children, and even though there was code there to exit the
  31.     loop on pid == 0, the variable sigchld_caught was not being set to
  32.     0, so j_reapchld() would be continually called from j_waitj()
  33.     wasting considerable cpu time. 
  34.  
  35.     4) In jobs.c:j_resume(), fg of a job that has exited, but not yet
  36.     been flushed from pdksh's list of jobs caused the controlling
  37.     terminal's process group to be stuffed up, and pdksh to exit, on
  38.     some machines. 
  39.  
  40.  
  41. Sat May 22 21:58:49 1993  Simon J. Gerraty  (sjg@zen.void.oz.au)
  42.  
  43.     * mail.c, expr.c: bug fixes from: Carsten Heyl
  44.     <ch@jenny.informatik.uni-dortmund.de> 
  45.  
  46.     * eval.c: bug fix from: Peter Collinson <pc@hillside.co.uk>
  47.  
  48.  
  49. Sat May  8 15:48:16 1993  Simon J. Gerraty  (sjg@zen.void.oz.au)
  50.  
  51.     * Ported to 386bsd (new base system :-), only sh directory
  52.     involved though.  This mainly involved re-arranging some #if's so
  53.     that if _POSIX_TERM is defined it will take precedence over _BSD
  54.  
  55. Sat Dec  5 23:54:40 1992  Simon J. Gerraty  (sjg@zen)
  56.  
  57.     * finally fixed the fd leakage that caused pipes to not terminate
  58.     immediately.
  59.  
  60. Sat Nov 28 23:01:38 1992  Simon J. Gerraty  (sjg@zen)
  61.  
  62.     * Makefile: added install target
  63.  
  64. Wed Nov 25 09:10:11 1992  Simon J. Gerraty  (sjg@zen)
  65.  
  66.     * c_cd(c_ksh.c): fixed bug causing cd ., cd .. to look at $CDPATH.
  67.  
  68. Thu Nov 19 23:32:42 1992  Simon J. Gerraty  (sjg@zen)
  69.  
  70.     * For now bind emacs mode complete-list to ESC=
  71.  
  72. Tue Sep 15 15:24:38 1992  Simon J. Gerraty  (sjg@zen)
  73.  
  74.     * main.c: call init_editmode() between processing .profile and
  75.     .kshrc so that edit mode can be explicitly set in .kshrc
  76.     regardless of FCEDIT, EDITOR and VISUAL values.
  77.  
  78. Tue Sep 15 15:08:06 1992  Philippe Michel (michel@thomson-lcr.fr) 
  79.  
  80.     * main.c: fixed bug in command line argument processing.
  81.  
  82. Fri Aug 21 15:24:37 1992  Bruce Momjian  (root%candle.uucp@bts.com)
  83.  
  84.     * exec.c: replace all calls of execute(tree, 0) with 
  85.     execute(tree, flags & XXWHL) to ensure it is passed to children. 
  86.  
  87. Thu Aug 20 23:18:45 1992  Simon J. Gerraty  (sjg@zen)
  88.  
  89.     * fixed bug in complex_history: histsize not initialized before
  90.     call to alloc().
  91.  
  92. Thu Aug 13 00:00:42 1992  Simon J. Gerraty  (sjg@zen)
  93.  
  94.     * setstr(), varsub(): be robust when given dud args.
  95.  
  96. Wed Aug 12 23:56:29 1992  Simon J. Gerraty  (sjg@zen)
  97.  
  98.     * Fixed build problem when COMPLEX_HISTORY is not defined.
  99.     * don't make COMPLETE_LIST the default, add 
  100.         bind '^[^['=complete-list
  101.     in .kshrc if desired.
  102.  
  103.  
  104. Mon Aug  3 22:41:17 1992  Simon J. Gerraty  (sjg@zen)
  105.  
  106.     * emacs.c: correctly bind <ESC><erase>.
  107.     * var.c: treat COLUMNS and FCEDIT as special.
  108.  
  109. Sat Aug  1 17:17:02 1992  Simon J. Gerraty  (sjg@zen)
  110.  
  111.     * Incorporated massive contribution from Peter Collinson
  112.     includes new features (refer to ../Changes.pc) and support for
  113.     BSDI's BSD/386.
  114.  
  115.     * emacs.c: new command complete-list provided by
  116.     Neil.Smithline@eng.sun.com this nicer than the standard ksh
  117.     file completion.  Define COMPLETE_LIST to bind this to <ESC><ESC>
  118.     by default.
  119.  
  120. Sat May 30 15:44:56 1992  Simon J. Gerraty  (sjg@zen)
  121.  
  122.     * added flag XXWHL in tree.h, used by execute() when calling
  123.     exchild() to indicate that stdin should not be invalidated.  This
  124.     corrects handling of:  
  125.          ls | while read f; do ls -l $f; done
  126.  
  127.     Thanks to Bruce Momjian for tracking down the fault.
  128.  
  129. Tue May 12 19:23:17 1992  Simon J. Gerraty  (sjg@zen)
  130.  
  131.     * Fix bug in init_editmode() if EMACS and VI are not both defined.
  132.  
  133. Sun May  3 17:47:54 1992  Simon J. Gerraty  (sjg@zen)
  134.  
  135.     * sigact.c:  allow force build if USE_* defined.
  136.     * main.c: call init_editmode() _after_ processing /etc/profile.
  137.     * jobs.c: ensure SA_RESTART is defined.
  138.  
  139. Sat Apr 25 00:20:51 1992  Simon J. Gerraty  (sjg@zen)
  140.  
  141.     * Implemented a simple history file.
  142.     The default file is "$HOME/.pdksh_hist" but can be changed by
  143.     setting HISTFILE in any of /etc/profile,.profile or .kshrc.
  144.     The format is trivial - one line per history item.  
  145.     You can creat a set history file, by making it read-only.
  146.     History is only saved during wrap-up and only if the file is
  147.     writeable.  NOTE: if writeable the file is OVERWRITTEN.
  148.  
  149. Fri Apr 24 22:22:04 1992  Simon J Gerraty  (sjg@zen)
  150.  
  151.     * sigact.c: New file.
  152.     An implementation of sigaction() and freinds, which simply
  153.     interfaces to BSD's setsigmask() et al, BSD4.1's setsig() or plain
  154.     old signal(2).  It attempts to use the most useful available.
  155.     If it thinks the system really has sigaction() it compiles to
  156.     noting, and its header sigact.h does nothing.
  157.     At present all use of sigaction is bounded by USE_SIGACT, if/when
  158.     this approach appears to work, the alternatives will be withdrawn.
  159.  
  160. Fri Apr 24 10:42:40 1992  Simon J Gerraty  (sjg@taureau)
  161.  
  162.     * Added support for sigaction and friends!, turns out sigset() 
  163.     et al just don't handle job control.  Define USE_SIGACT if you
  164.     have sigaction().  Job control now works on this System V machine
  165.     (Bull DPX/2).
  166.  
  167.     * getsc_(lex.c), x_getc(edit.c):  Added goto's! to allow the
  168.     read() calls to be retried (on systems that don't do it
  169.     automatically) if the read() was interrupted by a SIGCHLD
  170.     (sigchld_caught > 0).  This was the cause of the problem with an
  171.     async child terminating the shell on System V.
  172.  
  173. Wed Apr 22 14:57:01 1992  Simon J Gerraty  (sjg@taureau)
  174.  
  175.     * exchild(jobs.c): block SIGCHLD when fork()ing, until safe to
  176.     receive.
  177.  
  178.     * Added support? for sigset() and friends.  Allow JOBS to work on
  179.     System V machines.  This does NOT work right yet.
  180.     With JOBS defined, an async process terminates the shell when it
  181.     (the child) exits, and ^Z does nothing!  
  182.  
  183. Tue Apr 21 15:18:08 1992  Simon J. Gerraty  (sjg@sun0)
  184.  
  185.     * removed const qualifyer from setctypes() 1st arg, as gcc-2.1
  186.     generates incorrect code for this function.  This is a temperary
  187.     hack until gcc is fixed.
  188.  
  189.     * do not install std/stdc/stdarg.h in std/h, any compiler that
  190.     will use stdarg.h should have one.
  191.  
  192. Sun Apr 19 20:16:32 1992  Simon J. Gerraty  (sjg@zen)
  193.  
  194.     * added support of stdargs to tree.c and _fixed_ the use of
  195.     varargs. 
  196.  
  197. Sat Apr 18 16:35:48 1992  Simon J. Gerraty  (sjg@zen)
  198.  
  199.     * x_read(edit.c): added logic to check $EDITOR etc.
  200.  
  201.  
  202. Fri, 10 Jan 92 13:13:52      Bullseye Software  (sumax!polari!bullseye)
  203.  
  204.     * alloc.c:afreeall() references memory it has already deallocated.
  205.  
  206. Wed, 1 Jan 92 20:03:55    Bert Gijsbers (a430mcb1@diamond.sara.nl)
  207.  
  208.     * expand(eval.c):  PS1='${PWD##/*/}[!]% ' prints also characters
  209.     with ascii = 128 
  210.  
  211.     * main(main.c): Testing whether the first letter of argv[0] is a
  212.     '-' does not work when ksh reads .kshrc.
  213.  
  214. Sun, 29 Dec 91 20:05:02  Bert Gijsbers (a430mcb1@diamond.sara.nl)
  215.  
  216.     * Support for Minix.
  217.  
  218. Wed, 11 Dec 91 12:41:31    Kees J. Bot (kjb@cs.vu.nl)
  219.  
  220.     * fixes for sun3 with 4.1.1
  221.  
  222. Wed, 4 Dec 91 15:53:43  Reg Quinton (reggers@julian.uwo.ca)
  223.  
  224.     * fixes for SGI
  225.  
  226. Mon Nov 25 12:36:42 1991  Simon J. Gerraty  (sjg at zen)
  227.  
  228.     * stdh.h:  make sure FD_CLEXEC is defined if we support F_SETFD.
  229.     
  230.     * emacs.c: Attempt to make alloc() of x_tab acceptible to more
  231.     compilers.  Not 100% yet.
  232.     
  233. Sat Nov 23 14:31:44 1991  Simon J. Gerraty  (sjg at zen)
  234.  
  235.     * Improved fd_clexec handling for systems that don't have
  236.     an F_SETFD fcntl().  The new arrangement will not blow up if an
  237.     attempt is made to fd_clexec a fd above MAXFD (64 by default).
  238.     main.c:main()  and io.c:savefd() now simply call
  239.     exec.c:fd_clexec(). 
  240.  
  241. Fri Nov 22 11:24:57 1991  Simon J. Gerraty  (sjg at zen)
  242.  
  243.     * Since many people had problems using the headers and libraries
  244.     in std/*, modified sh/* so that they can be compiled in the
  245.     absence of std/*.  This requires putting in some fixes that I had
  246.     left out from my 3.2 version.  Particularly, catering for systems
  247.     that do not have F_SETFD.
  248.  
  249.     * exec.c:
  250.     Added fd_clexec array for tracking fd's to close in child after
  251.     fork().  This is avoid wasting fd's on systems that don't have
  252.     F_SETFD.
  253.  
  254.     * jobs.c:
  255.     Allow Sun's and perhaps other BSD systems to define WAIT_T to be
  256.     union wait and thus use their native status handling for children.
  257.  
  258.     * The file sh/MACHINES now tracks systems the shell has been
  259.     compiled on.
  260.  
  261.  
  262. Sat Nov  9 14:57:30 1991  Simon J. Gerraty  (sjg at zen)
  263.  
  264.     * Release version 4.1 as a new base line.
  265.  
  266. Thu Nov  7 23:11:25 1991  Simon J. Gerraty  (sjg at zen)
  267.  
  268.     * John R MacMillan suppied a fix for a bug in yylex() that was the
  269.     cause of several odd problems such as:
  270.         $ foo=echo
  271.         $ $foo bar
  272.         bar: not found
  273.         $ pwd
  274.         $ /local/src/pdksh
  275.         $ $foo bar
  276.         bar
  277.         $
  278.  
  279. Sun Sep 15 23:19:27 1991  Simon J. Gerraty  (sjg at zen)
  280.  
  281.     * emacs.c:
  282.     Added function x_lastcp() which returns a pointer to that char in
  283.     the edit buffer that will be the last displayed on the screen.
  284.     Thus:
  285.  
  286.           cp = x_lastcp();
  287.       while (cp > xcp)
  288.             x_bs(*--cp);
  289.     
  290.     Will correctly position the cursor on the screen (regardless of
  291.     TABs etc in the buffer).  The previous method got out of sync if
  292.     there were any TABs to display.
  293.  
  294. Wed Aug  7 11:26:55 1991  Simon J. Gerraty  (sjg at sun0)
  295.  
  296.     * jobs.c:
  297.     The Sun SPARCstation 2 was proving extremely unreliable using ksh.
  298.     After puting traces in jobs.c, it turns out the problem was
  299.     multiple SIGCHLD events happening too quickly causing the handler
  300.     to be interupted and thus not recognise the job that it had just
  301.     reaped was one of its own.  Having done the waitpid(), but not
  302.     adjusted the job table entry, j_waitj() would loop forever waiting
  303.     for a job to finnish (that had already done so!)
  304.     Solution was to have the SIGCHLD handler simply record the events
  305.     by inrcrementing sigchld_caught.  The actual reaping is now done
  306.     in a new funtion j_reapchld(), which does what the old signal
  307.     handler did but blocks SIGCHLD while scanning the job table.
  308.     j_waitj() calls j_reapchld() when sigchld_caught is non-zero.
  309.     The SS2 is now much more reliable...
  310.  
  311.     * trace.c:
  312.     Added my simple _TRACE facility (used to track the j_waitj
  313.     problem).  Simply -DUSE_TRACE for it to have effect.  If USE_TRACE
  314.     is undefined, calls to _TRACE() expand to while(0) which an
  315.     optimizer will usually remove.  sh.h now includes trace.h
  316.  
  317. Mon Jun 10 10:27:14 1991  Simon J. Gerraty  (sjg at zen)
  318.  
  319.     * emacs.c:
  320.     A couple of assignments (xbp = xbuf) were not migrated from the
  321.     3.2 version.  Caused an anoying bug when retrieving history
  322.     commands. 
  323.  
  324. Mon May 27 12:50:20 1991  Simon J. Gerraty  (sjg at sun0)
  325.  
  326.     * added fixes supplied by Mike Jetzer:
  327.     These relate mainly to vi mode.  See Changes.mlj
  328.  
  329.     * c_sh.c c_exit():
  330.     Modified behavior to not imediately exit if there are stopped
  331.     jobs.  A subsequent exit will kill any jobs left and terminate the
  332.     shell. 
  333.  
  334. Fri May 24 15:20:10 1991  Simon J. Gerraty  (sjg at sun0)
  335.  
  336.     * edit.h:
  337.     Cleaned up prototypes.  Built shell on sun3.
  338.     While gcc-1.39 builds the ksh ok on the 386i, on the sun3 jobs
  339.     don't work correctly - any non-builtin command gets stopped and
  340.     put into the background.  Had same problem with 3.2, using
  341.     /usr/bin/cc works fine.
  342.  
  343. Thu May 23 13:45:20 1991  Simon J. Gerraty  (sjg at sun0)
  344.  
  345.     * migrated my 3.2 edit.c changes to the new shell.
  346.     Affects edit.c, emacs.c
  347.     Added edit.h which is now included by edit.c,emacs.c and vi.c
  348.     
  349.     * vi.c:
  350.     Fixed handling of '!' in prompt by using pprompt() as in emacs.c
  351.  
  352.     * std/stdc/vprintf.c:
  353.     Fixed bug in output of left '0' padded unsigned numbers was
  354.     always padding with ' ' which left a space in ksh's temp file
  355.     names.  This prevented fc -l from working.
  356.  
  357. Here is my 3.2 ChangeLog:
  358. Fri Mar 22 16:50:14 1991  Simon J. Gerraty  (sjg at sun0)
  359.  
  360.     * edit.c:
  361.     Added x_set_arg() and x_prev_histword().
  362.     x_set_arg() handles 'ESC''0-9' type args which are used by word
  363.     related commands.
  364.     x_prev_histword() recovers the last (default) or sepcified arg
  365.     word from the previous command line.  Bound to ESC. and ESC_ to be
  366.     compatible with real ksh.
  367.  
  368. Tue Feb 26 14:16:17 1991 Simon J. Gerraty  (sjg at zen)
  369.  
  370.     * edit.c:
  371.     Changes to handle editing of command lines longer than $COLUMNS in
  372.     a manner compatible with real ksh.
  373.  
  374. Mon Feb 25 12:20:36 1991 Simon J. Gerraty  (sjg at sun0)
  375.  
  376.     * var.c,table.h:
  377.     Implemented $RANDOM
  378.     Some scripts use [ "$RANDOM" != "$RANDOM" ] to check for ksh. 
  379.  
  380. Wed Feb 20 12:20:36 1991 Simon J. Gerraty  (sjg at sun0)
  381.  
  382.     Changes so that shell will compile on sun386i.
  383.  
  384.     * exec.c,main.c,io.c:
  385.     Handle the case where FD_CLEXEC isn't defined.
  386.  
  387.     * jobs.c:
  388.     SunOS has its own ideas about job status etc.
  389.  
  390.     * tree.c:
  391.     Fixed conflict between varargs and stdarg.
  392.  
  393.  
  394.  
  395.  
  396.