arean / Porjay Public

Porjay: distributed version control and code hosting, built on Fossil SCM

Help: test-prompt-password

The "test-prompt-password" command:

Usage: porjay test-prompt-password PROMPT VERIFY

Prompts the user for a password and then prints it verbatim.

Behavior is controlled by the VERIFY parameter:

0
Just ask once.

1
If the first answer is a non-empty string, ask for verification. Repeat if the two strings do not match.

2
Ask twice, repeat if the strings do not match.