Question about the 'read' command in bash
Chet Ramey
chet@nike.ins.cwru.edu
Thu May 10 14:37:00 GMT 2001
> I have a bash shell script with the following lines of code:
>
> #!/bin/bash
> uname | cut -c1-4 | read op_sys
> echo $op_sys
>
> This works fine at work using SGI IRIX and ksh, but under cygwin and bash
> at home, op_sys does not get set - null is echoed.. what do I need to do
> differently?
Read the Bash FAQ, question E4.
ftp://ftp.cwru.edu/pub/bash/FAQ
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list