what's the best way to abort a pipeline partway through?

e.g. in a simple case,

$ ls foo
ls: foo: No such file or directory
$ cat foo|wc -l
cat: foo: No such file or directory
       0
$ 

i'd prefer it stopped after the "cat foo" failed

(i'm sure this is a common request, but i've tried googling for solutions and 
haven't found anything)
-- 
Aaron Davies
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to