Skip to content

Commit d19369b

Browse files
committed
- Fix generated script for zsh compatibility
1 parent 2e968a5 commit d19369b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

lib/completely/template.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
<%= function_name %>() {
77
local cur=${COMP_WORDS[COMP_CWORD]}
8-
local comp_line="${COMP_WORDS[*]:1}"
8+
local comp_line="${COMP_WORDS[@]:1}"
99

1010
case "$comp_line" in
1111
% patterns.each do |pattern|

spec/approvals/cli/generated-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
_mygit_completions() {
77
local cur=${COMP_WORDS[COMP_CWORD]}
8-
local comp_line="${COMP_WORDS[*]:1}"
8+
local comp_line="${COMP_WORDS[@]:1}"
99

1010
case "$comp_line" in
1111
'status'*) COMPREPLY=($(compgen -W "--help --verbose --branch $(git branch 2> /dev/null)" -- "$cur")) ;;

spec/approvals/cli/generated-script-alt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
_mycomps() {
77
local cur=${COMP_WORDS[COMP_CWORD]}
8-
local comp_line="${COMP_WORDS[*]:1}"
8+
local comp_line="${COMP_WORDS[@]:1}"
99

1010
case "$comp_line" in
1111
'status'*) COMPREPLY=($(compgen -W "--help --verbose --branch $(git branch 2> /dev/null)" -- "$cur")) ;;

spec/approvals/cli/generated-wrapped-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ give_comps() {
66
echo $'# Modifying it manually is not recommended'
77
echo $'_mygit_completions() {'
88
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9-
echo $' local comp_line="${COMP_WORDS[*]:1}"'
9+
echo $' local comp_line="${COMP_WORDS[@]:1}"'
1010
echo $''
1111
echo $' case "$comp_line" in'
1212
echo $' \'status\'*) COMPREPLY=($(compgen -W "--help --verbose --branch $(git branch 2> /dev/null)" -- "$cur")) ;;'

spec/approvals/completions/function

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ send_completions() {
66
echo $'# Modifying it manually is not recommended'
77
echo $'_completely_completions() {'
88
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9-
echo $' local comp_line="${COMP_WORDS[*]:1}"'
9+
echo $' local comp_line="${COMP_WORDS[@]:1}"'
1010
echo $''
1111
echo $' case "$comp_line" in'
1212
echo $' \'generate\'*) COMPREPLY=($(compgen -A directory -W "--help --force" -- "$cur")) ;;'

spec/approvals/completions/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
_completely_completions() {
77
local cur=${COMP_WORDS[COMP_CWORD]}
8-
local comp_line="${COMP_WORDS[*]:1}"
8+
local comp_line="${COMP_WORDS[@]:1}"
99

1010
case "$comp_line" in
1111
'generate'*) COMPREPLY=($(compgen -A directory -W "--help --force" -- "$cur")) ;;

spec/approvals/completions/script-only-spaces

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
_completely_completions() {
77
local cur=${COMP_WORDS[COMP_CWORD]}
8-
local comp_line="${COMP_WORDS[*]:1}"
8+
local comp_line="${COMP_WORDS[@]:1}"
99

1010
case "$comp_line" in
1111
'generate'*) COMPREPLY=($(compgen -A directory -W "--help --force" -- "$cur")) ;;

0 commit comments

Comments
 (0)