Zsh Mailing List Archive
Messages sorted by:
Re: first adventures
- X-seq: zsh-users 19302
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: first adventures
- Date: Sat, 01 Nov 2014 09:35:49 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <CAHYJk3QdA379NqnO6XGU_SZC11kLcRSYSmt3YCnt=8g08D69=A@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <544D2D6F.email@example.com> <firstname.lastname@example.org> <544FD6DD.email@example.com> <141028210510.ZM10784@torch.brasslantern.com> <54510A96.firstname.lastname@example.org> <141029134624.ZM15681@torch.brasslantern.com> <545178DF.email@example.com> <141029210738.ZM15833@torch.brasslantern.com> <5452ED18.firstname.lastname@example.org> <141030195906.ZM30057@torch.brasslantern.com> <5453D0AE.email@example.com> <firstname.lastname@example.org> <545460D9.email@example.com> <CAHYJk3QdA379NqnO6XGU_SZC11kLcRSYSmt3YCnt=8g08D69=A@mail.gmail.com>
On 11/01/2014 12:51 AM, Mikael Magnusson wrote:
I got three copies of this, is that how things are supposed to work?
I understand. You point out one of those little subtle errors that can
foul things up. I was indeed thinking of
' \n ' as 'special' (newline of course), but it's special to echo and
print NOT to the shell in general. But there are
situations where I have to pass a literal ' \n ' to a command, so I was
wanting it unmolested. Is there, or
could/should there be some way of leaving builtin 'special' characters
alone? But it's not important, the ' (z) '
method gives me the command back absolutely raw, even on Saturday, just
as I want. And I can always ' \\n ' protect the thing by hand.
On Sat, Nov 1, 2014 at 5:26 AM, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
\n is the same as for example "n", which is one level of quoting,
which (Q) removes. Note that \n is not special to the shell in any way
other than being a quoted letter n. Many builtins parse the _string_
\n as a newline, but \n on the raw input line after parsing into
separate arguments is not the string \n, but the string n.
Philosophically tho, it seems strange that zsh can prepare coffee in
more ways than Starbucks, but getting a raw coffee bean is difficult.
Messages sorted by: