bug-coreutils
[Top][All Lists]
Advanced

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

bug#23545: pr bug


From: Pádraig Brady
Subject: bug#23545: pr bug
Date: Mon, 16 May 2016 01:42:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

tag 23545 notabug
close 23545
stop

On 15/05/16 20:18, Andrey Hinov wrote:
Hello Team,

I believe a behavior of pr command might be a bug. If you use -h option for
header and in the string you put exclamation (!) all is good, but if you
put more than 1 exclamations in raw command failed. You can see results in
the attached pictures.

Usually it's much better to just copy and paste the text
rather than send large pictures.

What's happening here is history expansion.
!! refers to the last command, even when double quoted.
You need to single quote the string to avoid the expansion:

  pr -h 'THIS IS M HEADER!!' path.txt

cheers,
Pádraig.





reply via email to

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