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.