Repository navigation
trying to read with the -z/--null option makes the shell unresponsive #12624
Replies: 1 comment
|
find . -type d -print0 | read -z dirFor an interactive prompt, just drop read -S -P "Please enter directory: " test_var(If you ever genuinely need to end a NUL-delimited read from the keyboard, Ctrl-Space sends a NUL, but that is not what you want here.) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to prompt the user to store a directory in a var with
read test_var -z -S -P "Please enter directorybut when I do I can type but enter doesn't register the end of input, I can't ^C out of the command either, just have to quit my shell. I am sure I'm missing something simpleAll reactions