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

Re: RFS: stda 1.0



Hi Charles,

On Sat, 10 Oct 2009, Charles Plessy wrote:


Hello Dimitar,

I had a quick look at the package. In Debian, /bin/sh can be /bin/bash or
/bin/dash. To ensure that scripts will work with either shell, Debian has

I'm aware that /bin/sh can point either to bash or dash.

developed a script, checkbashisms, to make sure that if /bin/sh is called, it
does not rely on specific features from bash.

Can you confirm that your programs will work with dash as well as bash, or correct them if necessary? The correction can be as simple as calling /bin/bash instead of /bin/sh.

I can confirm that the signal trapping in the scripts works properly with both shells.


Here is the result of checkbashisms:

$ checkbashisms maphimbu mintegrate mmval muplot nnum prefield
possible bashism in muplot line 82 (trap with signal numbers):
trap "_clean_up_ && exit" 1 2 3 6 15
possible bashism in prefield line 66 (trap with signal numbers):
trap 'rm -f "$ofile"; exit' 1 2 3 15


It seems that traps with signal numbers are ok also for dash.

Have a nice day,

--
Charles Plessy
Tsurumi, Kanagawa, Japan


Thanks for your comments.

Kind regards,
Dimitar Ivanov


Reply to: