Monday, February 24, 2014

[389-devel] portability issue: scripts expecting /bin/sh to be bash

Hi

I noticed that some shell scripts have bashisms in them, on Debian and
it's derivatives /bin/sh is dash. A quick list of scripts shipped by
389-ds-base having this issue:

monitor
ldif2db
ldif2ldap
db2bak
vlvindex
dn2rdn
restoreconfig
saveconfig
upgradedb
suffix2instance
dbverify

but since I just ran all the scripts without any options, there might be
others too that fail with "unexpected operator" errors etc when ran in a
real environment. So maybe change all of them to use /bin/bash or
migrate them to be posix compatible (and somehow test new ones for
compliance)?


--
t
--
389-devel mailing list
389-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-devel

No comments:

Post a Comment