delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4B503EBB.1000904@towo.net> |
References: | <EDF49EC9787F914CA157FF6927D65A88302633AB3C AT CBMCC-X7-MBX10 DOT ad DOT cibc DOT com> <4B4FD6FC DOT 4060903 AT byu DOT net> <4B503EBB DOT 1000904 AT towo DOT net> |
Date: | Fri, 15 Jan 2010 08:37:44 -0500 |
Message-ID: | <f60fe001001150537i256c3581qfe675d7b1d9e0393@mail.gmail.com> |
Subject: | Re: Can't set variables in a while loop that is passed to the rest of the script. |
From: | "Mark J. Reed" <markjreed AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Friday, January 15, 2010, Thomas Wolff wrote: > As was responded before, this isn't supposed to work in a pipe. Not in ksh either, I think, No, it works in real ksh. If the last command in a pipeline is a builtin, it is run in the current shell. $ unset foo bar $ echo ${foo=hiya} | read bar $ echo foo=$foo bar=$bar the above will set bar but not foo in ksh. Some shells will set foo but not bar. Current bash sets neither. No shell sets both. But not Cygwin-related. -- Mark J. Reed <markjreed AT gmail DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |