GNU bug report logs - #17601
printf not interpreting hex escapes

Previous Next

Package: coreutils;

Reported by: Phillip Susi <psusi <at> ubuntu.com>

Date: Mon, 26 May 2014 16:43: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


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

From: Pádraig Brady <P <at> draigBrady.com>
To: Phillip Susi <psusi <at> ubuntu.com>
Cc: 17601 <at> debbugs.gnu.org
Subject: Re: bug#17601: printf not interpreting hex escapes
Date: Mon, 26 May 2014 17:50:51 +0100
tag 17601 notabug
close 17601
stop

On 05/26/2014 05:41 PM, Phillip Susi wrote:
> printf '\x41' prints "x41" instead of "A".
> 
> Also it has no --help or --version switch, but I seem to be running
> version 8.21-1ubuntu5 ( obviously on ubuntu ).

$ type printf
printf is a shell builtin

$ dash -c "printf '\x41\n'"
\x41

$ bash -c "printf '\x41\n'"
A

$ dash -c "env printf '\x41\n'"
A




This bug report was last modified 10 years and 364 days ago.

Previous Next


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