This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Newline missing in csh
- From: "John Hein" <3fbmqnhaz4 at snkmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 16 Nov 2015 12:59:18 -0700
- Subject: Re: Newline missing in csh
- Authentication-results: sourceware.org; auth=none
- References: <91DCAC3CB99C724EB365BB64677FBE7B01BEBA at MX204CL04 dot corp dot emc dot com>
Gluszczak, Glenn wrote at 17:43 +0000 on Nov 16, 2015:
> cat "/proc/registry/HKEY_CURRENT_USER/Control Panel/International/sLanguage" works fine in bash
> but if I switch to csh I fail to get a newline when reading the registry.
>
> $ cat -v "/proc/registry/HKEY_CURRENT_USER/Control Panel/International/sLanguage"
> ENU^@
> $ csh
> $ cat -v "/proc/registry/HKEY_CURRENT_USER/Control Panel/International/sLanguage"
> ENU^@$
In bash, 'set PS1=x' and try again. Looks like it's just a side
effect of your prompt settings.
It's not that bash is working "fine", but that your bash prompt is
adding a newline that's not part of the data in the file you're
reading. And your expectation that the added newline makes it the
correct behavior is flawed.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple