Re: Just created alias doesn't work in a string of commands

2007-02-08 Thread Paul Jarc
"Gurjeet Singh" <[EMAIL PROTECTED]> wrote: > 1$ cat setenv.sh > #!/bin/sh > > alias llrt='ls -lrt' ... > 5$ . ./setenv.sh && llrt && . ./unsetenv.sh > sh: llrt: command not found Aliases are expanded when a command is read, not when it is executed. The entire && chain of commands forms a single co

Just created alias doesn't work in a string of commands

2007-02-08 Thread Gurjeet Singh
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)