Problem with bash command substitution?
Matthew Brown
mbrown@mediadb.net
Fri Feb 25 11:24:00 GMT 2000
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@yahoo.com>
To: "Cygwin" <cygwin@sourceware.cygnus.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@yahoo.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@sourceware.cygnus.com
>
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list