-displayfd outputting some garbage?

Matt D. matt@codespunk.com
Wed Feb 8 01:02:00 GMT 2017


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/



More information about the Cygwin-xfree mailing list