2004-01-27 Corinna Vinschen * builtins.def: Don't set -j flag for getoptscmd. * shell.h: Don't define VFORK as 1 on Cygwin. * var.c (voptind): Don't disable voptind if SMALL is defined. 2003-10-07 Corinna Vinschen * exec.c (find_command): On Cygwin, use access(2) to determine executablitity of commands. 2002-07-30 Jason Tishler * exec.c (find_command): Add trying foo.exe when foo is found but is not an executable file. 2002-01-31 Corinna Vinschen * Makefile.am (install-exec-local): Install new ash.1 man page. * Makefile.in: Regenerated. * ash.1: New file. * sh.1: Remove. 2002-01-31 Corinna Vinschen * Makefile.am (install-exec-local): Install man page. * Makefile.in: Regenerated. 2001-10-26 Egor Duda * miscbltin.c (readcmd): Change default mode to process backslashes as escapes. Use '-r' option to switch to "raw" mode. '-e' option is now ignored. Sat Aug 25 21:25:18 2001 Christopher Faylor * jobs.c (forkshell): Clear vforkpid in a "regular" forked shell. Sun Aug 5 9:44:00 2001 Corinna Vinschen * main.c (main): Eliminate call to setmode. (cmdloop): Add call to setmode to set and reset O_TEXT for stdin when commandline has to be parsed. * miscbltin.c (readcmd): Reset O_TEXT mode after reading. Sat Aug 4 20:44:15 2001 Christopher Faylor * trap.c (exitshell): Avoid calling trap commands in a vforked shell. Sat Aug 4 20:23:28 2001 Christopher Faylor * jobs.c (forkshell): Don't clear traps when vforking or they will be cleared in the parent process. 2001-04-12 Nicholas Duffek * cd.c (getpwd): Accomodate vpid parameter to forkshell. * eval.c (evalsubshell): Ditto. (evalpipe): Ditto. (evalbackcmd): Ditto. (evalcommand): Track vforked pid. (execmd): Accomodate vfork. * error.c (exraise): Exit if error in vforked child. * error.h (INTON): Make macro "if safe". (FORCEINTON): Ditto. * input.c (closeallfiles): New function. (closescript): Use closallfiles. * jobs.c: More SMALL accomodations. (forkshell): Accomodate vfork. * jobs.h: Add extra vfork argument to forkshell declaration. * redir.c (redirect): Vfork accomodations. (popredir): Ditto. (clearredir): Ditto. * shell.h: Define VFORK for Cygwin and linux. * var.c (pushv): New function. (listpushvar): Ditto. (listpopvar): Ditto. (setvareq): Use pushv. (unsetvar): Accomodate vfork. * var.h: Declare listpushvar, listpopvar. * exec.c (shellexec): Avoid using special '%' option when SMALL. (padvance): Ditto. (changepath): Ditto. * exec.h: Eliminate unneeded declaration. * memalloc.c (ckmalloc): Always use cleared memory. Mon Mar 26 11:36:00 2001 Corinna Vinschen * memalloc.c: Revert previous patch revert since need of original patch is proved. Thu Oct 12 14:28:00 2000 Corinna Vinschen * memalloc.c: Revert previous patch until it's need is proved. Tue Oct 10 16:46:00 2000 Corinna Vinschen Patch suggested by Andy Mortimer : * memalloc.c: Add member `refcnt' to struct stack_block. (stalloc): Initialize refcnt when allocating a new block. (setstackmark): Increment refcnt when reusing a stack block. (popstackmark): Decrement refcnt when dropping usage of a stack block. (growstackblock): Reallocate a block only if it's used only once. Tue Oct 10 16:46:00 2000 Corinna Vinschen * eval.c (evalcommand): Avoid output of the same `not found' message twice. Tue Oct 10 11:36:00 2000 Corinna Vinschen * eval.c (evalpipe): Discard latest change. * miscbltin.c (readcmd): Set read mode to O_TEXT if system defines O_TEXT. Wed Aug 23 12:39:00 2000 Corinna Vinschen * eval.c (evalpipe): Set read mode to O_TEXT for pipe if system defines O_TEXT. Fri Jul 7 15:50:00 2000 Corinna Vinschen * eval.c (evalcommand): Emit error message if command not found by find_command(). Wed Jun 27 14:28:00 2000 Corinna Vinschen * eval.c (evalbackcmd): Set read mode to O_TEXT for pipe if system defines O_TEXT. (evalcommand): Ditto. Wed Jun 7 22:19:00 2000 Corinna Vinschen * exec.c (find_command): If name contains a slash, check if file exists and is an executable regular file. (typecmd): Don't prefix a path component if argument contains a slash. Wed May 17 16:04:00 2000 Corinna Vinschen * input.c: Include if compiled for Cygwin. (setinputfd): Set mode of input file to O_TEXT if that mode exists on the target system. * main.c: Include if compiled for Cygwin. (main): Set mode of stdin to O_TEXT if that mode exists on the target system. * miscbltin.c (umaskcmd): Call ash_setmode instead of setmode. * setmode.c (ash_setmode): Renamed from `setmode' to avoid name collision on systems which have a `setmode' function (eg. Cygwin). Mon May 8 10:57:00 2000 Corinna Vinschen * different *.c: Add error string to error output. * eval.c: Include errno.h. (evaltree): Add exit condition for semicolon according to latest FreeBSD sources (5/7/00). (evalpipe): Avoid closing stdin by mistake. (evalcommand): Add code to avoid wrong usage of command hash table in case of PATH=... command. Don't run commands in backquotes in parent shell context. * exec.c: Change storage class of `clearcmdentry'. * jobs.c: Move "#undef CEOF" to avoid compiler warning. * main.c: include . Delete extern declaration of errno. * mkinit.c: include . * mksyntax.c (init): Add default value for CTLQUOTEMARK according to latest FreeBSD sources. * output.c: undef CEOF to avoid compiler warning. * bltin/test.c (binop): Additional return to avoid compiler warning. Tue Aug 24 22:30:49 1999 Christopher Faylor * configure.in: Defaulting the target cc to the native cc doesn't make any sense, so just default to gcc. * configure: Regenerate. Sun Aug 8 23:13:19 1999 Christopher Faylor Throughout, eliminate use of sys/cdefs.h and __P macro. * Makefile.am: Update some dependencies. * Makefile.in: Regenerate. Thu Jul 29 23:10:05 1999 Christopher Faylor * jobs.c (forkshell): Don't use setpgid if we're not using job control. Wed Jul 28 23:07:24 1999 Christopher Faylor * Makefile.am: Change an option. * Makefile.in: Regenerate. * configure.in: Eliminate special install test. * configure: Regenerate. Wed Jul 28 21:09:55 1999 Christopher Faylor * configure.in: Use the correct arguments to AC_CHECK_PROG and AC_CHECK_TOOL. * configure: Regenerate. * exec.c (find_command_name): Fix a typo. Tue Jul 27 23:09:39 1999 Christopher Faylor * Makefile.am: Don't assume that the current directory is in the path. Establish dependencies for the generated include files. * Makefile.in: Regenerate. * configure.in: Default to the build cc if none other is found. * configure: Regenerate. * exec.c: Througout, don't try to interpret #! unless necessary. (shellexec): First stab at handling MS-DOS paths when appropriate. (execinterp): Conditionalize with HASHBANG. * expand.c (exptilde): Conditionalize. * jobs.c (waitproc): Use BSD semantics under cygwin. * trap.c (onsig): Ditto. Sat Jul 17 01:03:51 1999 Christopher Faylor * cd.c (cd): Handle a non-existent argument. Fri Jul 16 23:15:30 1999 Christopher Faylor Import latest ash from FreeBsd 3.2. Modify to produce /bin/sh functionality. * Makefile.am: New file. * Makefile.in: New file generated via automake. * configure.in: Modify for automake and new version. * acinclude.m4: New file. * aclocal.m4: New file. 1999-07-08 Drew Moseley * cd.c: Make sure PWD environment variable gets set when we change into a director that we don't know of because we traversed a symbolic link or something we couldn't stat(). Tue Mar 9 15:03:25 1999 Geoffrey Noer * configure.in: Require autoconf 2.13 * configure: Regenerate. Mon Nov 2 17:05:22 1998 Geoffrey Noer * Makefile.cygwin32: delete, * Makefile.cygwin: renamed as * configure.in: use Makefile.cygwin for Cygwin builds Mon Nov 2 14:51:22 1998 Geoffrey Noer * Makefile.cygwin32: replace spaces with tab, fix Makefile dep Thu Oct 29 17:15:30 1998 Geoffrey Noer * Makefile.cygwin32: add install-info rule, create bindir if missing Mon Oct 12 19:04:26 1998 Geoffrey Noer * configure.in: call AC_EXEEXT, not AM_EXEEXT * configure: regenerate * aclocal.m4: remove; no longer needed Wed Sep 30 19:32:40 1998 Geoffrey Noer * Makefile.cygwin32: add check rule Mon Aug 31 14:45:42 1998 Christopher Faylor Add changes from Debian release 0.3.4-2. * test/test.c: Use __RCSID macro. * parser.c (command): Allow empty case/esac . * Makefile.in: Comment out some unused variables. Thu Apr 2 02:23:12 1998 Geoffrey Noer * Makefile.cygwin32: add info, install rules. Add exeext machinery. Use $(AR) instead of ar. Set variables like CC, AR, INSTALL, ... from autoconf results. Comment out build rules for already generated .c files like syntax.c. Add clean rule. * aclocal.m4: new, defines AM_CYGWIN32, AM_EXEEXT * configure.in: require latest autoconf, deal with INSTALL * configure: regenerate with autoconf 2.12.1 Thu Apr 2 00:28:57 1998 Geoffrey Noer Start of adaptation of ash to configury for Cygwin32 * Makefile: Remove * Makefile.debian: moved to Makefile for targets other than cygwin32. * Makefile.cygwin32: local version of Makefile.debian for Cygwin32 target. * configure.in: new, based on similar trick we did with bash before it was autoconfiscated. * configure: generated with autoconf 2.12.1. Tue Mar 31 18:53:52 1998 Geoffrey Noer Import ash-0.3.2-4 from Debian Linux sources * ChangeLog.Cygnus: create ChangeLog for local changes