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

Re: bashisms



Adrian Bridgett <adrian.bridgett@zetnet.co.uk> writes:

> To this end we really need a short document which details the differences,
> the "right" way to do things and the definite "No-No"s.  Maybe this should
> go into the packaging manual, but initially it is probably better to have it
> seperate as it would change quite a bit at the start. 
> 
> I'd be happy to write such a document, but I need help as I only really know
> two things:
>   cp fred.{txt,html} dest    ->   cp fred.txt fred.html dest
>   function f() {echo Hi;}    ->   f() {echo Hi;}
> 

Also, never use &> or >& as a shortcut to redirect both stderr and stdout.
It's an evil syntax borrowed from csh and it's why dpkg-ftp currently spews 
lots of extra output but otherwise works perfectly.

And don't use nonstandard flags on builtins including `read -r', or any flag
on `type'.

greg


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: