Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: indented heredocs
- X-seq: zsh-workers 40221
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Dave Yost <Dave@xxxxxxxx>
- Subject: Re: indented heredocs
- Date: Wed, 21 Dec 2016 19:50:19 +0000
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=U1ThtSQm8lZh4chEluxvDjYYP7E=; b=QopGasBqtkiOIWoPSXon6 o4Z1rXlzYoTKl+N52v0aoDpoWw2RlGUWPw65zS8ogqK8CdK6Xs8xmIcISp3r4B6U ggBFX3C6ptd58KCbTLm8ivuuhj1WLYDPaqnNs37j+VWyoBR9aKaS+62iyYTOIZrc LKIu4C3D+exMQ4kRJcfPF4=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=U1ThtSQm8lZh4chEluxvDjYYP7E=; b=ZC9SeD8xGCePlWoRURmj Q9Xc8C/h6RUPeVGu6e6e2TDvhzl9dI74aYq3q0ECh4b3DCqw92p2EEE3I7VrdQEn 3J7nu7I5zeic+k32J1KxPVqill0gAE6Nicr6x4EJxhJbF1arRiLCeyaRMjICtyiu dJ0H7tZUpglUSNul0gMsSPw=
- In-reply-to: <CFA2339B-26F2-4104-AAD2-64852509286B@yost.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CFA2339B-26F2-4104-AAD2-64852509286B@yost.com>
Dave Yost wrote on Wed, Dec 21, 2016 at 11:29:17 -0800:
> Surely people have thought of this (Alternative 1):
>
> 0 Wed 10:53:53 ~
> 205 Z% cat <<xx
> foo
> bar
> xx
> foo
> bar
> 0 Wed 10:53:53 ~
> 206 Z%
>
> but shells don’t do that.
>
That's supported already:
<<[-] word
⋮
If <<- is used, then all leading tabs are stripped from word and
from the document.
$ zsh -f
% cat <<-x
heredocd> foo
heredocd> bar
heredocd> x
foo
bar
%
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author