GNU bug report logs - #23545
pr bug

Previous Next

Package: coreutils;

Reported by: Andrey Hinov <andrey.hinov <at> gmail.com>

Date: Sun, 15 May 2016 23:28:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Andrey Hinov <andrey.hinov <at> gmail.com>, 23545 <at> debbugs.gnu.org
Subject: bug#23545: pr bug
Date: Mon, 16 May 2016 01:42:34 +0100
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.




This bug report was last modified 9 years and 67 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.