[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About standards and politics



Obviously the script works better like this:

vi:

#!/bin/sh
echo "Do you want to use ${EDITOR} instead of vi? y/n"
read edit
if [ "$edit" = "y" -o "$edit" = "Y" ]; then
        exec $EDITOR $1
else
        exec vi $1
fi

--
Med venlig hilsen/Best regards
Birger Langkjer
http://members.xoom.com/langkjer