This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Question about bash / alias / expanding / next command word
- From: "Bernd Walther" <Bernd dot Walther at ids dot de>
- To: <cygwin at cygwin dot com>
- Date: Fri, 31 May 2002 19:19:38 +0200
- Subject: Question about bash / alias / expanding / next command word
- Organization: SWP
Hello,
i don't believe, there is a bug,
but i am confused about the expanding of alias
in the following bash commands
alias myprogram="/data/usr/batch/myprogram"
alias xxx="ls -l"
alias yyy="ls -l "
touch myprogram
ls -l myprogram
xxx myprogram
# 1) the second alias is NOT be evaluated, correctly
yyy myprogram
# 2) the second alias will be evaluated, correctly, because yyy ends with
a blank
# 'its not a bug, its a feature', see on manual
alias yyy="ls -l"
# okay, turn back, make no blank at the end, like 1), but...
yyy myprogram
# 3) the state "alias is ending with a blank" will not be resetted after
given a new value, why ?
regards Bernd Walther, Germany
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/