public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "John Hein" <3fbmqnhaz4@snkmail.com>
To: cygwin@cygwin.com
Subject: Re: Newline missing in csh
Date: Mon, 16 Nov 2015 19:59:00 -0000	[thread overview]
Message-ID: <20636-1447703967-607217@sneakemail.com> (raw)
In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B01BEBA@MX204CL04.corp.emc.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

  reply	other threads:[~2015-11-16 19:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-16 17:44 Gluszczak, Glenn
2015-11-16 19:59 ` John Hein [this message]
2015-11-17  1:35 ` Andrey Repin
2015-11-17  8:48   ` Robert Klemme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20636-1447703967-607217@sneakemail.com \
    --to=3fbmqnhaz4@snkmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).