From c344f74b8af9111fdce7c3ac4f766b9bbd79e1f4 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Fri, 13 Oct 2006 03:54:14 +0000 Subject: [PATCH] dont specify shell for su, irix doesnt like it make filter irix friendly Merge of master-melb:xfs-cmds:27181a by kenmcd. --- 123 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/123 b/123 index 46b5a2df..39d32e87 100755 --- a/123 +++ b/123 @@ -27,9 +27,23 @@ _cleanup() _cleanup_testdir } + +_filter_user_do() +{ + perl -ne " +s,.*Permission\sdenied.*,Permission denied,; +s,.*no\saccess\sto\stty.*,,; +s,.*no\sjob\scontrol\sin\sthis\sshell.*,,; +s,^\s*$,,; + print;" +} + + + + _user_do() { - echo $1 | su -s /bin/sh - $qa_user | sed -e "s#.*Permission denied.*#Permission denied#g" + echo "/bin/sh '$1'" | su - $qa_user | _filter_user_do } # get standard environment, filters and checks @@ -48,7 +62,6 @@ echo foo > $testdir/data_coherency.txt # check basic appending to a file echo bar >> $testdir/data_coherency.txt - # try append _user_do "echo goo 2>&1 >> $testdir/data_coherency.txt" -- 2.47.3