[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

echo thing | read thang

From: Philip Lijnzaad
Subject: echo thing | read thang
Date: 01 Aug 2001 23:31:20 +0100

I came across what I consider strange behaviour: 

  echo iiiiiiiiiii | if read x ; then echo "a $x b" ; fi


  a iiiiiiiiiii b


  echo iiiiiiiiiii | read x  && echo "a $x b" 


  a b

I consider this a bug, but I'm happy to be told that it's not. 

(I was actually exploring why on earth echo foo | read bar; echo $bar does
not work; I consider this a bug as well, perhaps not as 'blatant' as the
above one, but puzzling nonetheless). This is using an admittedly oldish
version 2.01.0(1)-release (i486-pc-linux-gnu). Cheers,


Real programs don't eat cache (Malay)
Philip Lijnzaad, address@hidden \ European Bioinformatics Institute,rm A2-08
+44 (0)1223 49 4639                 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax)           \ Cambridgeshire CB10 1SD,  GREAT BRITAIN

reply via email to

[Prev in Thread] Current Thread [Next in Thread]