I am using MinGW, and found this bug. Following is the session that shows a reproducible test-case. The steps are elaborated here (numbers before the dollar prompt)
0) Shows the version information. 1) Shows that setenv.sh sets an alias (llrt) 2) Shows that unsetenv.sh unsets the alias (llrt) 3) Shows existing aliases (includes lrt, not llrt) 4) Shows that a pre-existing alias works just fine. 5) (the BUG)Shows that an alias created in the same strings of commands is flagged 'not found'. 6) Shows that llrt is visible to the alias command, but still the shell couldn't find it in step 5 above. Hope this is reproducible on a Linux box too... 0$ /bin/sh --version GNU bash, version 2.04.0(1)-release (i686-pc-msys) Copyright 1999 Free Software Foundation, Inc. 1$ cat setenv.sh #!/bin/sh alias llrt='ls -lrt' 2$ cat unsetenv.sh #!/bin/sh unalias llrt 3$ alias alias clear='clsb' alias ll='ls -l' alias lrt='ls -lrt' 4$ . ./setenv.sh && lrt && . ./unsetenv.sh total 6 drwxr-xr-x 2 EDB Administ 0 Jul 20 2006 lexyacc drwxr-xr-x 3 EDB Administ 0 Sep 28 18:41 perl -rw-r--r-- 1 EDB Administ 8455 Nov 19 13:40 MinGWStudio.ini drwxr-xr-x 2 EDB Administ 0 Dec 15 02:18 wgetwin-1_5_3_1-binary -rwxr-xr-x 1 EDB Administ 33 Feb 8 12:45 setenv.sh -rwxr-xr-x 1 EDB Administ 25 Feb 8 12:46 unsetenv.sh 5$ . ./setenv.sh && llrt && . ./unsetenv.sh sh: llrt: command not found 6$ . ./setenv.sh && alias && . ./unsetenv.sh alias clear='clsb' alias ll='ls -l' alias llrt='ls -lrt' alias lrt='ls -lrt' Regards, -- [EMAIL PROTECTED] [EMAIL PROTECTED] gmail | hotmail | yahoo }.com _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash