Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
rl -p"Enter your name: " -d"Bob" |tee tempfile
result=$(tail -1 tempfile)
echo "Hello, $result!"
fprintf (stderr,"%s\n", temp);
rl -p "Enter your name:" -d "Bob" 2> temp.txt
result=$(tail -1 temp.txt)
echo Hello, $result
NEWPATH=$rl -p "Enter your name: " -d "Bob" 2>&1 >/dev/tty)
echo Hello, @${NEWPATH}@
produces...
Enter your name: Bob
@ello, Bob@
#!/usr/dt/bin/dtksh
print "Prompt: "
[[ -z $1 ]] && set -- -
for i
do
if [[ $i != - ]] then
exec 3< $i
else
exec 3<&0
fi
IFS=
while read -u3 -r line
do
if [[ $line = "" ]] then
break
fi
print -r -- "$line"
break
done
done
exec 3<&-