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: Newline missing in csh


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


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