1 SEDLIST
="/usr/bin/sed /bin/sed sed gnused gsed"
5 if ! test -x $SED ; then
6 SED
=$
(which $SED 2> /dev
/null
)
7 if ! test -x "$SED" > /dev
/null
; then
13 echo "HELLO" > .sedtest
14 $SED -i -e "s/HELLO/GOODBYE/" .sedtest
>/dev
/null
2>&1
15 RESULT
=$
(cat .sedtest
)
17 if test $?
!= 0 ; then
19 elif test -e ".sedtest-e" ; then
22 elif [ "x$RESULT" = "x" ] ||
[ "$RESULT" != "GOODBYE" ] > /dev
/null
;
28 if [ ! -z "$SED" ] ; then