This is the mail archive of the
mailing list for the Cygwin project.
Re: Problem with bash command substitution?
- To: "Rick Rankin" <rick_rankin at yahoo dot com>, "Cygwin" <cygwin at sourceware dot cygnus dot com>
- Subject: Re: Problem with bash command substitution?
- From: "Matthew Brown" <mbrown at mediadb dot net>
- Date: Fri, 25 Feb 2000 14:21:11 -0500
- References: <firstname.lastname@example.org>
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" <email@example.com>
To: "Cygwin" <firstname.lastname@example.org>
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
> 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 Rankin
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> Want to unsubscribe from this list?
> Send a message to email@example.com
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org