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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23545 in the body.
You can then email your comments to 23545 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#23545; Package coreutils. (Sun, 15 May 2016 23:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrey Hinov <andrey.hinov <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 15 May 2016 23:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrey Hinov <andrey.hinov <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: pr bug
Date: Sun, 15 May 2016 15:18:01 -0400
[Message part 1 (text/plain, inline)]
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.
[image: Inline image 4]

[image: Inline image 5]

information for my system:

[image: Inline image 6]
[Message part 2 (text/html, inline)]
[image.png (image/png, inline)]
[image.png (image/png, inline)]
[image.png (image/png, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#23545; Package coreutils. (Mon, 16 May 2016 00:43:01 GMT) Full text and rfc822 format available.

Message #8 received at 23545 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Andrey Hinov <andrey.hinov <at> gmail.com>, 23545 <at> debbugs.gnu.org
Subject: Re: 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.




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Mon, 16 May 2016 08:39:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 23545 <at> debbugs.gnu.org and Andrey Hinov <andrey.hinov <at> gmail.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Mon, 16 May 2016 08:39:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 Jun 2016 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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