[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange behavior of aliases whose value end with space

From: Thomas Lotterer
Subject: strange behavior of aliases whose value end with space
Date: Fri, 9 Jul 2004 14:59:55 +0200
User-agent: Mutt/1.4.1i

Dear bug hunters,
I came across a strange behavior of bash(1) when the value of an alias
ends up with a space character. I'm not sure if this is actually a
bug, but if it isn't maybe someone can enlighten me and explain what's
going on in the example below. It was my expectation to see "foo" being
printed in both cases. This issue is probably the same or related to the
unanswered report by Ilya Beylin a long time ago in december 2001 [1].
The issue is not related to a specific OS or CPU architecture.

$ bash --version
GNU bash, version 2.05b.7(1)-release (i386-unknown-freebsd4.10) [OpenPKG-2.1]
Copyright (C) 2002 Free Software Foundation, Inc.

$ alias foo=one      

$ alias bar="echo"
$ bar foo

$ alias bar="echo "
$ bar foo


address@hidden, Cable & Wireless

reply via email to

[Prev in Thread] Current Thread [Next in Thread]