Skip to content

Commit 8013f18

Browse files
committed
add test script that reads user input for subprocess testing
1 parent c965333 commit 8013f18

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/shell_script_input_prompt.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# For testing subprocesses that require input
3+
# Ask the user for login details
4+
read -p 'Username: ' user
5+
read -sp 'Password: ' pass
6+
echo
7+
echo Hello $user

0 commit comments

Comments
 (0)