On 02/16/2011 01:06 PM, risin...@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 ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature