Newline missing in csh
John Hein
3fbmqnhaz4@snkmail.com
Mon Nov 16 19:59:00 GMT 2015
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
More information about the Cygwin
mailing list