gnu.bash.bug
[Top] [All Lists]

Re: inconsistent treatment of backslash-bang

Subject: Re: inconsistent treatment of backslash-bang
From: Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Jul 2008 00:46:33 +1200
Newsgroups: gnu.bash.bug

Andreas Schwab wrote:

> Lawrence D'Oliveiro writes:
> 
>> And even with the specialness of bang turned off, it still doesn't work
>> right:
>> 
>> ldo@theon:~> set +H
>> ldo@theon:~> echo "hi there!"
>> hi there!
>> ldo@theon:~> echo "hi there\!"
>> hi there\!
>> ldo@theon:~> echo hi there!
>> hi there!
>> ldo@theon:~> echo hi there\!
>> hi there!
> 
> In which way is that wrong?

Maybe not:

ldo@theon:~> set +H
ldo@theon:~> echo "y"
y
ldo@theon:~> echo "\y"
\y
ldo@theon:~> echo y
y
ldo@theon:~> echo \y
y

That still leaves the issue of the discrepancy between the way bash actually
behaves, and the way it's documented to behave.




<Prev in Thread] Current Thread [Next in Thread>