* Newline missing in csh
@ 2015-11-16 17:44 Gluszczak, Glenn
2015-11-16 19:59 ` John Hein
2015-11-17 1:35 ` Andrey Repin
0 siblings, 2 replies; 4+ messages in thread
From: Gluszczak, Glenn @ 2015-11-16 17:44 UTC (permalink / raw)
To: cygwin
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^@$
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Newline missing in csh
2015-11-16 17:44 Newline missing in csh Gluszczak, Glenn
@ 2015-11-16 19:59 ` John Hein
2015-11-17 1:35 ` Andrey Repin
1 sibling, 0 replies; 4+ messages in thread
From: John Hein @ 2015-11-16 19:59 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Newline missing in csh
2015-11-16 17:44 Newline missing in csh Gluszczak, Glenn
2015-11-16 19:59 ` John Hein
@ 2015-11-17 1:35 ` Andrey Repin
2015-11-17 8:48 ` Robert Klemme
1 sibling, 1 reply; 4+ messages in thread
From: Andrey Repin @ 2015-11-17 1:35 UTC (permalink / raw)
To: Gluszczak, Glenn, cygwin
Greetings, Gluszczak, Glenn!
> 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^@$
cat -v "/proc/registry/HKEY_CURRENT_USER/Control Panel/International/sLanguage" | od -t x1
--
With best regards,
Andrey Repin
Tuesday, November 17, 2015 04:27:55
Sorry for my terrible english...
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Newline missing in csh
2015-11-17 1:35 ` Andrey Repin
@ 2015-11-17 8:48 ` Robert Klemme
0 siblings, 0 replies; 4+ messages in thread
From: Robert Klemme @ 2015-11-17 8:48 UTC (permalink / raw)
To: cygwin
On Tue, Nov 17, 2015 at 2:28 AM, Andrey Repin <anrdaemon@yandex.ru> wrote:
>
> Greetings, Gluszczak, Glenn!
>
> > 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^@$
>
> cat -v "/proc/registry/HKEY_CURRENT_USER/Control Panel/International/sLanguage" | od -t x1
I'd rather do this to get the real contents (and not have cat -v add something):
od -t x1c "/proc/registry/HKEY_CURRENT_USER/Control
Panel/International/sLanguage"
Kind regards
robert
--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-17 8:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-16 17:44 Newline missing in csh Gluszczak, Glenn
2015-11-16 19:59 ` John Hein
2015-11-17 1:35 ` Andrey Repin
2015-11-17 8:48 ` Robert Klemme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).