Elías Alejandro <[email protected]> writes:

> Dear Lintian Maintainers,

> I was making my script but lintian(2.3.2) said me:

> W: bygfoot: possible-bashism-in-maintainer-script preinst:7 '${MIARRAY[*]}'

> According [0] it is this right.
> My script is attach. Please could you explain me.

> [0] http://docs.hp.com/en/B2355-90046/ch21s07.html

Array variables are not a required POSIX shell feature and therefore
cannot be used with #!/bin/sh scripts.  If you want to use extended
features like this, your shell script needs to specify /bin/bash instead.
See Policy 10.4, which also has a direct link to the relevant POSIX
standard, which does not mention arrays at all.

-- 
Russ Allbery ([email protected])               <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to