Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

zsh wait for user input

# delete -q if its not (y/n [n])

read -q VARIN?"PROMPT_MSG"
read -q "VARIN?PROMPT_MSG"
#both style works, I prefer the first

echo $VARIN # for test
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #zsh #wait #user #input
ADD COMMENT
Topic
Name
3+6 =