This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 02/16/2011 01:06 PM, RISINGP1@nationwide.com wrote: > I suspected a problem with \r, so I tried it. However, I am using pdksh, > and ended up with something that really was unexpected... No, that's also expected. pdksh echo obeys POSIX by default. Bash echo does not. Echo and backslash is a non-portable combination (POSIX itself recommends using printf if you suspect that you might be printing a backslash, because it requires the pdksh behavior but so many people have come to expect the bash behavior). Since cygcheck output includes backslashes, you should not expect any sensible behavior when trying to echo it, and should instead use printf. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |