This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 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: -displayfd outputting some garbage?


This is causing issues where I try to perform:

echo $(cat .display)

Which results in:

bash: warning: command substitution: ignored null byte in input
0


Matt D.

On 2/7/2017 7:46 PM, Matt D. wrote:
I have an xinit script which outputs the display id to a file with the
following option:

xinit .. -displayfd 3 3>$HOME/.display

This outputs correctly '0' but appends 0x00 and 0x0A. Why is it
outputting a null byte and this 0x0A?


Matt D.

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


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