Kaixo!

The "printf" function of bash is supposed to work the same as the C printf()
one; however if you do:

printf "%c\n" 0x40

for example the result won't be at all the same as printf("%c\n",0x40);

I think it is a bug.

What about fixing it like this? :

--- printf.c.orig       Tue Apr  6 19:23:53 1999
+++ printf.c    Tue Jan  2 21:58:15 2001
@@ -340,7 +340,7 @@
       break;

     case 'c':
-      printf (p, *argument);
+      printf (p, atoi(argument));
       break;

     case 's':



-- 
Pablo Saratxaga         PGP key 0x8F0E4975

Zerbait gaizki gertatzen ahal balitz, zerbait gertatuko da. -- Murphy

Reply via email to