diff options
author | 2009-08-19 10:39:50 +0000 | |
---|---|---|
committer | 2009-08-19 10:39:50 +0000 | |
commit | 3a89195f39ec989b56bbfd5a9a2b6ac968b019c6 (patch) | |
tree | 45c88d1cc02d87a01fdd8e77ba0df39c5ef4c4b8 /regress/usr.bin/ssh/ssh-com-sftp.sh | |
parent | organize midi code like audio code, no functional change (diff) | |
download | wireguard-openbsd-3a89195f39ec989b56bbfd5a9a2b6ac968b019c6.tar.xz wireguard-openbsd-3a89195f39ec989b56bbfd5a9a2b6ac968b019c6.zip |
Extend command-prompt with a -p option which is a comma-separated list of one
or more prompts to present in order.
The responses to the prompt are replaced in the template string: %% are
replaced in order, so the first prompt replaces the first %%, the second
replaces the second, and so on. In addition, %1 up to %9 are replaced with the
responses to the first the ninth prompts
The default template is "%1" so the response to the first prompt is processed
as a command.
Note that this changes the behaviour for %% so if there is only one prompt,
only the first %% will be replaced. Templates such as "neww -n '%%' 'ssh %%'"
should be changed to "neww -n '%1' 'ssh %1'".
From Tiago Cunha.
Diffstat (limited to 'regress/usr.bin/ssh/ssh-com-sftp.sh')
0 files changed, 0 insertions, 0 deletions