helpThe GNU Bourne-Again SHell - Support: sr #102985, Builtin printf: format...

 
 
Show feedback again

sr #102985: Builtin printf: format "%c" fails

Submitted by:  None
Submitted on:  Thu 08 Apr 2004 11:31:32 AM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 Aug 2004 07:57:35 PM UTC, comment #1:

I kinda fixed it :-) I'm just a wannabe-hacker trying to learn my ropes right. Please let me know if what I did is wrong.

G. Vamsee Krishna <vamsee>
Thu 08 Apr 2004 11:31:32 AM UTC, original submission:

Following the bash man page, printf "%c" <argument> should
behave as used with printf(3), namely accept a numeric
argument and then interprete it as the ASCII value of a
single character.
Thus,
printf "%c" 65
is supposed to send the letter "A" to stdout. In fact, "6"
is seen. BTW, the coreutils printf(1) behaves wrong, too.

Regards,
kno.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #3867:  printf.patch added by vamsee (1kB - text/x-patch - Patch for printf.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Thu 12 Aug 2004 07:57:35 PM UTCvamseeAttached File-=>Added printf.patch, #57
Show feedback again

Back to the top


Powered by Savane 3.1-cleanup