подскажите где в этой программе есть синтаксическая ошибкаКод:if [ -z $EDITOR ] ; then echo "Your EDITOR environment is not set" echo "I will assume you want to use vi..OK" echo -n "Do you wish to change it now? [y..n] :" read ANSif [ "$ANS" = "y" ] || [ "$ANS" = "Y" ]; then echo "enter your editor type :" read EDITORif [ -z $EDITOR ] || [ "$ANS" = "Y" ]; then echo "enter your editor type :" read EDITOR if [ -z $EDITOR ] || [ "$EDITOR" = "" ]; then echo "No, editor entered, using vi as default" EDITOR=vi export EDITORfi EDITOR=$EDITOR export EDITOR echo "setting $EDITOR"fielse echo "Using vi as the default editor" EDITOR=vi export vifi~ ~ ~ при её запуске она выдаёт мне такую ошибку:[serrggeee@localhost ~]$ sh testtest: line 26: syntax error: unexpected end of file[serrggeee@localhost ~]$
|