On Fri, Feb 08, 2008 at 09:29:22AM +0100, Václav Ovsík wrote: > The interpreter is changed to /bin/bash. There are bashisms (getopts, > PIPESTATUS...), so this can't be interpreted by /bin/sh. No, getopts is ok (as dash(1) says). The problem is PIPESTATUS at least. # etch:/home/zito# dash -x fixfiles + fullFlag=0 + FORCEFLAG= ... + SELINUXTYPE=refpolicy + SETLOCALDEFS=0 + FC=/etc/selinux/refpolicy/contexts/files/file_contexts fixfiles: 109: Syntax error: Bad substitution This code: rpmlist() { rpm -q --qf '[%{FILESTATES} %{FILENAMES}\n]' "$1" | grep '^0 ' | cut -f2- -d ' ' [ ${PIPESTATUS[0]} != 0 ] && echo "$1 not found" >/dev/stderr } We should use /bin/bash. Regards -- Zito -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.