INCLAN: ask: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
No edit summary
Line 1: Line 1:
== Synopsis ==


Usage: ask ''prompt'' ''variable'' ...
'''ask''' ''prompt'' ''variable'' ...


Writes the string prompt to standard output, reads one line from  
== Description ==
standard input, and assigns from this line strings separated by
 
blanks to the given variables. The command is usually used for  
Writes the string ''prompt'' to standard output, reads one line from standard input, and assigns from this line strings separated by blanks to the given ''variables''. The command is usually used for interactive input within macros. A prompt that contains blanks must be enclosed in double quotes.
interactive input within macros. A prompt that contains blanks  
must be enclosed in double quotes.

Revision as of 23:01, 18 February 2009

Synopsis

ask prompt variable ...

Description

Writes the string prompt to standard output, reads one line from standard input, and assigns from this line strings separated by blanks to the given variables. The command is usually used for interactive input within macros. A prompt that contains blanks must be enclosed in double quotes.