Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is there any possible way to automatically escape characters when executing an alias in zsh?



On Sat, 2021-09-11 at 20:16 +0100, Peter Stephenson wrote:
> accept-with-quote() {
>   if [[ $BUFFER = 'tasn '* && $BUFFER != *\\* ]]; then
>       BUFFER=${BUFFER//\'/\\\'}
>   fi
> }
> zle -N zle-line-finish accept-quote

obviously, that should be 'accept-with-quote' again, not 'accept-quote'.

pws






Messages sorted by: Reverse Date, Date, Thread, Author