Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <005001c208c7$58ef0a10$0d32a8c0@ids.de>
From: "Bernd Walther" <Bernd.Walther@ids.de>
To: <cygwin@cygwin.com>
Subject: Question about bash / alias / expanding / next command word
Date: Fri, 31 May 2002 19:19:38 +0200
Organization: SWP
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Note-from-DJ: This may be spam

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/

