diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-02 09:00:28 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-02 09:00:28 +0200 |
| commit | 30155bc59f9f6196c2526a89e9af5fd1c9e8c060 (patch) | |
| tree | ee0bb066d182a5e787a33ee3b6b342d58dabcb83 /.bashrc | |
| parent | 605c0c7fb25e64278554376bb433c4fae0778a3c (diff) | |
| download | dotfiles-30155bc59f9f6196c2526a89e9af5fd1c9e8c060.tar dotfiles-30155bc59f9f6196c2526a89e9af5fd1c9e8c060.tar.gz dotfiles-30155bc59f9f6196c2526a89e9af5fd1c9e8c060.zip | |
fix(bash): Quote all unquoted $@
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -90,7 +90,7 @@ export PROMPT_COMMAND="shell_var_fix;" ps_commands() { has="" - for i in $@ + for i in "$@" do case $i in (git) @@ -106,7 +106,7 @@ export PROMPT_COMMAND="shell_var_fix;" [ -n "$has" ] } right_slab() { - ps_commands $@ && echo "$PS_RIGHT_SLAB" + ps_commands "$@" && echo "$PS_RIGHT_SLAB" } ps_space() { @@ -305,8 +305,8 @@ EOF # Kill process and run in the background res() { - pkill $@ - bgr $@ + pkill "$@" + bgr "$@" } # Launch .desktop application (either full path or just name) @@ -331,7 +331,7 @@ EOF # File operations {{{ cp() { - command cp -p $@ + command cp -p "$@" } metas() { @@ -401,7 +401,7 @@ v() { if [ -f ".vim-session" ] && [ -z "$1" ]; then vim -S .vim-session else - vim $@ + vim "$@" fi } @@ -409,7 +409,7 @@ v() { grap() { parent="$1" shift - grit add -p $parent -- $@ + grit add -p $parent -- "$@" } onemo() { |
