"G. Vamsee Krishna" <[EMAIL PROTECTED]> wrote:
> What I still didn't get it, is this a bug or a feature left intentionally?
It's intentional.
paul
___
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils
Thanks. It's working fine now. "%c" 65 is giving 'A' :)
What I still didn't get it, is this a bug or a feature left intentionally?
In the later case, I think the man/info pages should be changed to reflect
it.
On Fri, 13 Aug 2004, Alfred M. Szmidt wrote:
>I deleted it and added /usr/local
"G. Vamsee Krishna" <[EMAIL PROTECTED]> writes:
> Well, if printf mimics C's printf, it's got to print 'A' :-)
POSIX also says that the argument for %c should be treated as a string,
not as a C constant.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Maxfeldstraße 5, 9
I deleted it and added /usr/local/bin to my path. `printf "%c" 65'
is still outputting '6' but `/usr/local/bin/printf "%c" 65' is
giving 'A'. Any idea what's going wrong?
Shell builtin probobly.
If you are using GNU bash then the following will disable the printf
builtin:
enable -n prin
Well, if printf mimics C's printf, it's got to print 'A' :-)
Also, I'm having some trouble with my patch. I've applied the patch and
did a "make". Now, in my coreutils/src/, I have the executables. "printf"
is working fine, as I expected it to work. Now, when I do a "make
install", it's getting
"G. Vamsee Krishna" <[EMAIL PROTECTED]> wrote:
> So, isn't `printf "%c" 65' supposed to print 'A' instead of '6'?
I agree that that would be the more useful behavior, but SUSv3 seems
to require "6".
paul
___
Bug-coreutils mailing list
[EMAIL PROTECTE
Hello,
The info page describes printf as
`printf' prints the FORMAT string, interpreting `%' directives and
`\' escapes in the same way as the C `printf' function.
So, isn't `printf "%c" 65' supposed to print 'A' instead of '6'? Please
let me know if it's a bug or not. Unable to sleep y'