Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: indented heredocs
- X-seq: zsh-workers 40229
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: indented heredocs
- Date: Thu, 22 Dec 2016 13:10:44 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=rj6iO9PDlfcBCC9VC8o3NuVbhR2L8YC3IQKRQGmRHPk=; b=zs+Nqh5pcOWOsT8gvBh82nVkJXkNAq3YSLivo5nqFsNwYvgwjU9owm5OPtnH22GUuO 4S5F91cbEMcW76NUi4NiuGEgXXyyfow95tYDp5PQhzhHfwHSKqtD6WC936n+lNivqxhU m55CqvKMfIvvJyXYs2g0Oh6F0kyRK9Q/eNRPDfo1gn10IuFPzJ1qMhmHUvqeidD9uPZe AXzAAs5PueMnB/O5UICmdQjAGQ5Qt/nDGtI7Dc8raX9vr5dGPw2hwsD5YcOj8MyrA8gR NXaywzEiH4ErBi/eHvid7kBXboqsl15ICOwGOiwjSN4OAXeDg1DR67PELFdWF3raw4WD XFxA==
- In-reply-to: <1482433489.24491.17.camel@niobium.home.fifi.org>
- 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> <CAH+w=7bGEb13SUxX-whdHzWRktoiMdvgSosJvcEoZ+t0z3FOhA@mail.gmail.com> <CAH+w=7aWm9ZTYr2mh_1T+9mmHQXN9L_CYz878FoqMzwUerL72w@mail.gmail.com> <1482433489.24491.17.camel@niobium.home.fifi.org>
On Dec 22, 11:04am, Philippe Troin wrote:
}
} Isn't the whole thing overkill?
Maybe.
} If you want anything fancier, you can always used sed [...]
} or even zsh itself
Indeed, I'm sure this is more of an aesthetic consideration than
anything else -- neatly indented code and all that. Having to throw
in an additional process or loop to achieve better readability in
the here-document adds ugliness and is somewhat obfuscatory.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author