The bashism used here is 'exec -a', which is used to set argv[0] (the
program path) when executing a binary. This trick is necessary,
because the program in question looks for files in the directory
dirname(argv[0]). Does dash have a way to achieve the same? If not,
I'll change the interpreter of this script to /bin/bash.

Cheers,
Shaun

2009/7/5 Raphael Geissert <atom...@gmail.com>:
> Package: eagle
> Severity: important
> Version: 5.4.0-3
> User: debian-rele...@lists.debian.org
> Usertags: goal-dash
>
> Hello maintainer,
>
> While performing an archive wide checkbashisms (from the 'devscripts' package)
> check I've found your package containing a /bin/sh script making use
> of a bashism.
>
> checkbashisms' output:
>> possible bashism in ./usr/bin/eagle line 13 (exec -c/-l/-a name):
>>         exec -a /usr/share/eagle/bin/eagle /usr/lib/eagle/bin/eagle "$@"
>> possible bashism in ./usr/bin/eagle line 24 (exec -c/-l/-a name):
>> exec -a ~/.eagle/bin/eagle /usr/lib/eagle/bin/eagle "$@"
>
>
> Not using bash (or a Debian Policy conformant shell interpreter which doesn't
> provide such an extra feature) as /bin/sh is likely to lead to errors or
> unexpected behaviours.
> Please be aware that although bash is currently the default /bin/sh there was
> a release goal for Lenny to make dash the default /bin/sh[1], and has been
> proposed for squeeze as well[2][3].
>
> If you want more information about dash as /bin/sh, you can read:
> http://lists.debian.org/debian-release/2008/01/msg00189.html
>
> For more information supporting this goal please refer to Debian Policy,
> section 10.4, at:
> http://www.debian.org/doc/debian-policy/ch-files.html#s-scripts
>
> Hints about how to fix bashisms:
> Sometimes these bugs are already fixed in Ubuntu, look at the PTS.
> If not already fixed you can read:
> https://wiki.ubuntu.com/DashAsBinSh
>
> If you still don't know how to fix the bashisms don't hesitate to reply to
> this email, or tag the bug as 'help'.
>
> [1]http://release.debian.org/lenny/goals.txt
> [2]http://lists.debian.org/debian-release/2009/04/msg00133.html
> [3]http://lists.debian.org/debian-devel/2009/06/msg00767.html
>
> Thank you,
> Raphael Geissert
>
>
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to