Skip to content

Commit ec431ae

Browse files
gbourantgbourant
authored andcommitted
read user input when script is passed through a pipe. closes #687
1 parent d5f8fe8 commit ec431ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/env.ab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fun is_command(command: Text): Bool {
6464

6565
/// Creates a prompt and returns the value.
6666
pub fun input_prompt(prompt: Text): Text {
67-
trust $ read -p "\${nameof prompt}" $
67+
trust $ read -p "\${nameof prompt} < /dev/tty" $
6868
return "\$REPLY"
6969
}
7070

0 commit comments

Comments
 (0)