From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108762 invoked by alias); 16 Nov 2015 19:59:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 108750 invoked by uid 89); 16 Nov 2015 19:59:31 -0000 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 Received: from sneak2.sneakemail.com (HELO sneak2.sneakemail.com) (38.113.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Mon, 16 Nov 2015 19:59:30 +0000 Received: (qmail 20725 invoked from network); 16 Nov 2015 19:59:28 -0000 Received: from unknown (HELO localhost.localdomain) (192.168.0.2) by sneak2.sneakemail.com with SMTP; 16 Nov 2015 19:59:28 -0000 Received: from 206.168.13.214 by mail.sneakemail.com with SMTP; 16 Nov 2015 19:59:28 -0000 Received: (sneakemail censored 20636-1447703967-607217 #2); 16 Nov 2015 19:59:28 -0000 Received: (sneakemail censored 20636-1447703967-607217 #1); 16 Nov 2015 19:59:28 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20636-1447703967-607217@sneakemail.com> Date: Mon, 16 Nov 2015 19:59:00 -0000 From: "John Hein" <3fbmqnhaz4@snkmail.com> To: cygwin@cygwin.com Subject: Re: Newline missing in csh In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B01BEBA@MX204CL04.corp.emc.com> References: <91DCAC3CB99C724EB365BB64677FBE7B01BEBA@MX204CL04.corp.emc.com> X-SW-Source: 2015-11/txt/msg00227.txt.bz2 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