delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <03dc01bf7fc5$7a1b7d50$2301a8c0@mediadb.net> |
From: | "Matthew Brown" <mbrown AT mediadb DOT net> |
To: | "Rick Rankin" <rick_rankin AT yahoo DOT com>, |
"Cygwin" <cygwin AT sourceware DOT cygnus DOT com> | |
References: | <20000225184216 DOT 27967 DOT qmail AT web804 DOT mail DOT yahoo DOT com> |
Subject: | Re: Problem with bash command substitution? |
Date: | Fri, 25 Feb 2000 14:21:11 -0500 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2919.6600 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id OAA15099 |
Maybe try export NODE=`hostname | tr 'A-Z' 'a-z'` (Note the back-ticks.) I assume that you are wanting to set the variable NODE to the output of the command? -- Matthew Brown ----- Original Message ----- From: "Rick Rankin" <rick_rankin AT yahoo DOT com> To: "Cygwin" <cygwin AT sourceware DOT cygnus DOT com> Sent: Friday, February 25, 2000 1:42 PM Subject: Problem with bash command substitution? > I discovered that bash is hanging on the following line in my .bash_profile: > > export NODE=$(hostname | tr 'A-Z' 'a-z') > > If I type > > hostname | tr 'A-Z' 'a-z' > > on the command line, it returns immediately with the results I expect. It only > seems to hang inside the $() or `` command substitution mechanism. I currently > have > > CYGWIN=tty notitle glob ntea nontsec > > and I have all text mounts. I'm using the latest snapshot. Has anyone else seen > this behavior? > > Rick > -- > Rick Rankin > rick_rankin AT yahoo DOT com > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |