diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-02 11:32:38 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-02 11:32:38 +0200 |
commit | f0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f (patch) | |
tree | d0aaab1de872a30a94555d2da3b501e13e18c217 /etc/completions/_pkill | |
parent | 81ac4a06bff278f07620804b7d4120342b1f6522 (diff) |
Replace $var by ${var}
Diffstat (limited to 'etc/completions/_pkill')
-rw-r--r-- | etc/completions/_pkill | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/completions/_pkill b/etc/completions/_pkill index 150cf32..8f92fdc 100644 --- a/etc/completions/_pkill +++ b/etc/completions/_pkill @@ -27,7 +27,7 @@ arguments=( ':pattern:_named_process' ) -if [[ $service == 'pgrep' ]] { +if [[ ${service} == 'pgrep' ]] { arguments+='-d[set output delimiter]:delimiter' arguments+='-l[list process name]' } @@ -40,12 +40,12 @@ function _named_process { typeset -a pgrep_user typeset IFS=$'\n' if (( EUID )) { - pgrep_user=(-u $EUID) + pgrep_user=(-u ${EUID}) } _message 'pattern' _wanted pattern expl 'process name' \ - compadd ${$(pgrep $pgrep_user -l '')#* } + compadd ${$(pgrep ${pgrep_user} -l '')#* } } -_arguments -s $arguments +_arguments -s ${arguments} _signals -p |