read: update completions to include --lines and --null

Does not include --all-lines pending discussion in #5332.
This commit is contained in:
David Adam 2018-11-12 23:08:45 +08:00
parent 7abfd1db30
commit 4b28e9d2e4

View file

@ -12,3 +12,5 @@ complete -c read -s s -l silent -d "Secure mode: mask characters at the command
complete -c read -s n -l nchars -d "Read the specified number of characters" complete -c read -s n -l nchars -d "Read the specified number of characters"
complete -c read -s a -l array -d "Store the results as an array" complete -c read -s a -l array -d "Store the results as an array"
complete -c read -s R -l right-prompt -d "Set right-hand prompt command" -x complete -c read -s R -l right-prompt -d "Set right-hand prompt command" -x
complete -c read -s z -l null -d "Use NUL character as line terminator"
complete -c read -s l -l line -d "Read each line into its own variable"