Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <20000225194716.731.qmail@web802.mail.yahoo.com> Date: Fri, 25 Feb 2000 11:47:16 -0800 (PST) From: Rick Rankin Subject: Re: Problem with bash command substitution? To: Matthew Brown , Cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've already tried the backticks with the same result. The "export NODE" line has been working fine in my .bash_profile in the exact same form for probably 18 months, at least. It only began to fail with some of the recent snapshots. Thanks for the suggestion, though. Rick -- Rick Rankin rick_rankin AT yahoo DOT com --- Matthew Brown wrote: > 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" > To: "Cygwin" > 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 > > > > > > __________________________________________________ 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