X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/f29cd56086ae36e7abad561ae32f0f063a1eac31..7d7ffd761724c1d0f1b1e018d9b1df218420fb60:/bin/dmenu_runsmart?ds=inline diff --git a/bin/dmenu_runsmart b/bin/dmenu_runsmart index 71cb8ad..c62e9ce 100755 --- a/bin/dmenu_runsmart +++ b/bin/dmenu_runsmart @@ -1,7 +1,10 @@ #!/bin/sh cmd=$(dmenu_path | ~/bin/dmenu "$@") if [ -n "$cmd" ]; then - # zsh SH_WORD_SPLIT is unset by default, `=' flag is required to expand + # NOTE: only tested with zsh and sh, and has issues with expansion; zsh + # SH_WORD_SPLIT is unset by default, `=' flag is required to expand it. + # XXX: probably has issues with single quotes + # XXX: does not perform any(!) shell expansion echo "alias sudo='sudo -Ak' cmd='$(echo "$cmd" | sed "s/'/'\\\\''/g")'" ' if [ -n "$ZSH_VERSION" ]; then