[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read only works from a tty
From: |
Chet Ramey |
Subject: |
Re: read only works from a tty |
Date: |
Wed, 03 Dec 2003 09:54:29 -0500 |
> prompt> echo "This is a test" | read bar
> prompt> echo $bar
>
> prompt>bash --version
> GNU bash, version 2.05b.0(1)-release
> (powerpc-apple-darwin7.0)
> Copyright (C) 2002 Free Software Foundation, Inc.
>
> bar is not getting set. read only seems to work from
> a tty. Since
> Macs /bin/sh is actually bash it breaks some of my
> shell scripts.
Please read the Bash FAQ, question E4.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/