Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [Fixed Hardwrap][BUG] Pipe fails even when using ' || true '
- X-seq: zsh-workers 48253
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [Fixed Hardwrap][BUG] Pipe fails even when using ' || true '
- Date: Sat, 27 Mar 2021 09:30:53 +0100
- Archived-at: <https://zsh.org/workers/48253>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CAHYJk3R9y2ipd7Eo_yaizW1o30notvme7g%2B1qGX3Xm%3DGWeig-A%40mail.gmail.com>
- In-reply-to: <CAH+w=7bt8DzR8QV=nAB2zhPib5x5KY7BVGs1BaZW2PTPWUw9Cw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAE9z9A2RBrXpEHxh92+TMTbP25+ztdzC_ZcuTpegb32Gxd4KUQ@mail.gmail.com> <CAH+w=7bt8DzR8QV=nAB2zhPib5x5KY7BVGs1BaZW2PTPWUw9Cw@mail.gmail.com>
On 3/26/21, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> If you're copy-pasting from an edit in browser gmail, for example, it
> has a tendency to insert non-breaking spaces whenever there is more
> than one consecutive space, which the shell interprets as
> non-whitespace and attempts to execute as commands. Annoys the hell
> out of me whenever I forget that it happens.
You can use bindkey -s (or some postprocessing in your paste handler,
depending), to get rid of these since you pretty much never actually
want them in a shell command line anyway (and you could use ctrl-v if
you really do want to type one).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author