From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26678 invoked by alias); 29 Dec 2016 10:05:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40243 Received: (qmail 12260 invoked from network); 29 Dec 2016 10:05:41 -0000 X-Qmail-Scanner-Diagnostics: from ioooi.vinc17.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(92.243.22.117):SA:0(-3.1/5.0):. Processed in 0.688852 secs); 29 Dec 2016 10:05:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Thu, 29 Dec 2016 10:56:21 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: indented heredocs Message-ID: <20161229095621.GA13526@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <1482433489.24491.17.camel@niobium.home.fifi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1482433489.24491.17.camel@niobium.home.fifi.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.7.2-6895-vl-r94147 (2016-12-27) On 2016-12-22 11:04:49 -0800, Philippe Troin wrote: > We already can handle the simple cases: > cat < cat <<-EOD will strip leading tabs Not everyone uses leading tabs. I think that getting the indent prefix (as a sequence of whitespace) from the first line of the heredoc would have been a better idea. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)