X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/a58ad2f0f50aeb3e5525cc7324503969d687f70b..1c9a18a31c533e3b32315ab835e96d725c94dcf4:/bin/dmenu_runsmart?ds=inline diff --git a/bin/dmenu_runsmart b/bin/dmenu_runsmart index c239db1..c62e9ce 100755 --- a/bin/dmenu_runsmart +++ b/bin/dmenu_runsmart @@ -2,7 +2,9 @@ cmd=$(dmenu_path | ~/bin/dmenu "$@") if [ -n "$cmd" ]; then # 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 + # 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