[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] Fix cross testing for posix/globtest.out
- To: Jim Blandy <jimb@xxxxxxxxxxxxxxxx>
- Subject: Re: [patches] Fix cross testing for posix/globtest.out
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Sat, 21 Apr 2007 00:02:26 +0000 (UTC)
On Fri, 20 Apr 2007, Jim Blandy wrote:
> Thanks for fixing this. I'm surprised that printf is more portable
> than echo -n, but I see now that it is so.
Differences between different implementations of echo (regarding handling
of arguments starting with "-" or containing "\") are part of the POSIX
(1992) rationale for adding the printf utility.
> Wouldn't printf '"' work just as well?
Yes.
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx