mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-06 15:53:06 +00:00
* tzselect.ksh (doselect): Prompt to stderr, not stdout.
(Thanks to Patrick 'P. J.' McDermott.)
This commit is contained in:
@@ -119,7 +119,7 @@ else
|
|||||||
for select_word
|
for select_word
|
||||||
do
|
do
|
||||||
select_i=`expr $select_i + 1`
|
select_i=`expr $select_i + 1`
|
||||||
printf "%${select_width}d) %s\\n" $select_i "$select_word"
|
printf >&2 "%${select_width}d) %s\\n" $select_i "$select_word"
|
||||||
done ;;
|
done ;;
|
||||||
*[!0-9]*)
|
*[!0-9]*)
|
||||||
echo >&2 'Please enter a number in range.' ;;
|
echo >&2 'Please enter a number in range.' ;;
|
||||||
@@ -133,7 +133,7 @@ else
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Prompt and read input.
|
# Prompt and read input.
|
||||||
printf %s >&2 "${PS3-#? }"
|
printf >&2 %s "${PS3-#? }"
|
||||||
read select_i || exit
|
read select_i || exit
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user