tests: interactive example convert to printf

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-02 23:20:32 +01:00
parent 64400cd216
commit bbdeb8ba0f

View File

@ -6,7 +6,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v1.20-0-g2ab00a2
#### $$VERSION$$ v1.21-pre-42-g64400cd
######
# parameters
@ -31,10 +31,10 @@ INPUT="${3:-/dev/stdin}"
# read -r variable <"${INPUT}"
# example wait form user input and echo it
echo "Enter a message:"
printf "Enter a message:\n"
read -r test <"${INPUT}"
echo -e "Your Message: ${test}\nbye!"
printf "%s\n" "Your Message: ${test}\nbye!"
# your commands ends here