delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/16/14:59:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-type
:content-transfer-encoding:message-id:date:from:to:subject
:in-reply-to:references; q=dns; s=default; b=sTh7QacFQgWZ/x72uF+
9gTHHbTB4OvrEI5o8nMGsaXmgMcUoJRXhuvW44P0kqz8beu538G1xpyXmnY+8Pu2
m4PP3rYutS3f3GSXqtoHa1maJDf4W/7qz2rTPxwu9ZLbmcwjg3o6c52KW3PB2KU3
rn9/Uz050VkHhQNOYMh6i5CU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-type
:content-transfer-encoding:message-id:date:from:to:subject
:in-reply-to:references; s=default; bh=KWxHVxXZTTdKadYTAUlZrxwrM
0I=; b=lTvzGWtncUliWKm/dUjxxs7YKbpyp56NK5769Zv8zrg0uirrkK6uGYK11
Wwg9h3kVIO2KyuMZKuuUpRKzkbk7NQKWwBQ/x5tGMMgQhS+1pJ9AATUtuFWhZGIf
PHQgSzp6/WyO22Sps/DWjXFkv/9C8RuKlKYCmFjsZWZ/dRWDzA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,HK_RANDOM_ENVFROM,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2
X-HELO: sneak2.sneakemail.com
MIME-Version: 1.0
Message-ID: <20636-1447703967-607217@sneakemail.com>
Date: Mon, 16 Nov 2015 12:59:18 -0700
From: "John Hein" <3fbmqnhaz4 AT snkmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Newline missing in csh
In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B01BEBA@MX204CL04.corp.emc.com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019