[Gllug] bash startup

Nix nix at esperi.demon.co.uk
Sun Nov 4 23:18:46 UTC 2001


On Sun, 4 Nov 2001, gllug at uncertainty.org.uk gibbered:
> I have tried using constructs like
> 
>>> foo < bar   
> 
> but I find looking back at shell scripts it is much more legible if I
> write 
> 
> cat bar >> foo

Er, you can easily write

< bar >> foo

so the two lines are almost identical.

> surely it is worth the two extra characters (only 1 extra keypress) for
> the sake of clarity.

In an interactive session, perhaps (YMMV, and mine does); but in a shell
script, especially where fork()s count (in loops, say), cat(1) is
normally to be avoided.

-- 
`You're the only person I know who can't tell the difference
 between a pair of trousers and a desk.' --- Kieran, to me

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list