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.