Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <005001c208c7$58ef0a10$0d32a8c0@ids.de> From: "Bernd Walther" To: 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/