Skip to content

Commit 69cf623

Browse files
committed
WIP: Complete -d option of read built-in command
1 parent 149942a commit 69cf623

File tree

1 file changed

+4
-1
lines changed
  • share/completion

1 file changed

+4
-1
lines changed

share/completion/read

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# (C) 2010-2015 magicant
1+
# (C) 2010-2025 magicant
22

33
# Completion script for the "read" built-in command.
44

@@ -7,6 +7,7 @@ function completion/read {
77
typeset OPTIONS ARGOPT PREFIX
88
OPTIONS=( #>#
99
"A --array; assign words to an array"
10+
"d: --delimiter:; specify a delimiter"
1011
"e --line-editing; use line-editing"
1112
"P --ps1; use \$PS1 as a prompt"
1213
"p: --prompt:; specify a prompt"
@@ -19,6 +20,8 @@ function completion/read {
1920
(-)
2021
command -f completion//completeoptions
2122
;;
23+
(d|--delimiter)
24+
;;
2225
(p|--prompt)
2326
complete -P "$PREFIX" -fv
2427
;;

0 commit comments

Comments
 (0)