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

Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic)



On May 6, 10:53pm, Axel Beckert wrote:
}
} But with zsh 5.2 (and zsh git HEAD), it looks like this:
} 
}   % echo https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
} 
}   % echo "https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
} 
}   % echo 'https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
} 
} While the first example still works as expected, I consider the latter
} two examples to be some kind of regression. No backslashes should be
} added in these cases.

You want

    zstyle :bracketed-paste-magic paste-init backward-extend-paste

so that the quote marks that are already on the line are treated as part
of the pasted text.



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