From: Christoph Hellwig Date: Fri, 13 Jan 2017 16:38:16 +0000 (+0100) Subject: common/rc: use /bin/bash in _user_do() X-Git-Tag: v2022.05.01~2225 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=600b4b2bba42217cc5d18319b5b65b1ced798273;p=xfstests-dev.git common/rc: use /bin/bash in _user_do() Without this the epressions in generic/256 will fail on a system where /bin/sh is the Default (e.g. modern Debian versions). Signed-off-by: Christoph Hellwig Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index 67cb8dd4..892c46e8 100644 --- a/common/rc +++ b/common/rc @@ -1809,7 +1809,7 @@ _user_do() then echo $1 | /bin/bash "su $qa_user 2>&1" | _filter_user_do else - echo $1 | su $qa_user 2>&1 | _filter_user_do + echo $1 | su -s /bin/bash $qa_user 2>&1 | _filter_user_do fi }