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]

Re: bug with cat and backticks? (was: bug with built-in ...)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Norton Allen on 1/29/2007 8:00 PM:
>>>
>>>    PID=`cat $PIDFILE`
>>
>> No, this is a text mount:

That's the answer.  You are creating PIDFILE with \r\n line endings, but
cat always reads in binary mode.

Try PID=`cat $PIDFILE | d2u` instead.  Or try using the igncr shell option.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFvsHC84KuGfSFAYARAthSAJ4ueC7VGD3iZR33FVoVcb7YqYr05QCgrIGA
5nGWqQDb23jeRsrPO/12mT8=
=cund
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]