Re: /bin/sh == bash?
David Weinehall wrote:
[snip]
> > But why? Often the bashisms make scripts much more readable (and
> > therefore maintainable). Especially for package build scripts.
>
> Well, I don't think I agree about often, but they do admittedly
> sometimes. But most of the non-POSIX stuff I run into are:
[snip]
> function bla; bla() is at least as readable
>
> kill -<signum>; I'd say kill -s <sigspec> is far more readable
>
> trap "..." <signum>; I'd say trap "..." <sigspec> is far more readable
>
> pushd <dir> .... popd; (cd <dir> ....) is imho at least as readable
The last change would affect the script's semantics. 'cd' calls aren't
easily nestable.
Thiemo
Reply to: