This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question about bash / alias / expanding / next command word


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]