From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16566 invoked by alias); 11 Mar 2018 09:45:07 -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: List-Unsubscribe: X-Seq: 42445 Received: (qmail 24202 invoked by uid 1010); 11 Mar 2018 09:45:07 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f42.google.com 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(74.125.82.42):SA:0(-1.9/5.0):. Processed in 1.940073 secs); 11 Mar 2018 09:45:07 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=ZR+Pd4mfqc/MpTNAizhPNWnrTtq3+RQ7R8E0WfQPg+E=; b=Kbv6pf1Mjd394RynYJi6oitvxIt0t/xifTdkXhC7QvmlQqCht36R1KKTPFq42sNPH0 WAO3exPdORvP1bG93KDu3moGVYFGwQe4xnPjXwiHGxVrrrEzaXFHtPQXut2VQCJ3XhyG v810JxWyz6tEPmv/yG5jKmsRUZBP4+QygHPKX8mak3LB4ouwhsl+shYIjlBJSEkWZJMW Pr33Fa6oLGKC5uKI+eHVRe7+vH/yeDz4kdcSTeHgnGjYcuHnDZE6aKt3wNtu5x8KzHb7 zaGo6SZdMso5OHOKMLVv7vlgRFuCk4Zo3w5Fy9NO2cO10EzyfjhFipvZtIBmZnHJ2EYZ 8Z7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=ZR+Pd4mfqc/MpTNAizhPNWnrTtq3+RQ7R8E0WfQPg+E=; b=rQxzMw1lxlFHZVdBp6KrpAcHLGKLAlkGxIijroW2MG6ow9dMhFMHKdyp25+Kr4f64u x8E9SIr+CrR+RK3ewm0MrCvyoa+AHwwT8oZPnVjnL2BkCc7uMewB4dxsb1gZhthDsN8O dFeS8/3fQXElGc5a8IrGHSbyaNiPiFsHzGcDeN0Jl2s93bGTmQwIn5FyabXkQl2ZcHIM hQeXeGV+2XSxrLyryb0dvyg9GeuMgyb05aXNmx6bzHWRgp773ecit1szk0rAJ6vxhvDH Rky0DvjY+b/NWFYlgT8bRbkFDIm55AO4LRyCW96sw8wvjnA1GfK/vG64rONdKOVLAZ7G 2HyQ== X-Gm-Message-State: AElRT7G1chgiBT1WOia/za7riPI/uAPUYFZNXTZtngR6TqHCR0c9DI2M dojh43iM23VqYD5MNVatYcqImg== X-Google-Smtp-Source: AG47ELukGvP0K3eLHDd3Op3rNg/S8S6liFjz4EQFvIzk45qHiVxWDn2CZ6XbM1lF+mLUr/dm1iEoZg== X-Received: by 10.28.154.213 with SMTP id c204mr2696012wme.64.1520761500383; Sun, 11 Mar 2018 01:45:00 -0800 (PST) Date: Sun, 11 Mar 2018 09:44:58 +0000 From: Stephane Chazelas To: Zsh hackers list Subject: [doc] "sh_word_split nothing to do with word splitting"? Message-ID: <20180311094458.GA6450@chaz.gmail.com> Mail-Followup-To: Zsh hackers list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) SH_WORD_SPLIT (-y) Causes field splitting to be performed on unquoted parameter expansions. Note that this option has nothing to do with word splitting. (See *note Parameter Expansion::.) [...] ${=SPEC} Perform word splitting using the rules for SH_WORD_SPLIT during the evaluation of SPEC, but regardless of whether the parameter appears in double quotes; if the '=' is doubled, turn it off. This forces parameter expansions to be split into separate words before substitution, using IFS as a delimiter. This is done by default in most other shells. Note that splitting is applied to WORD in the assignment forms of SPEC _before_ the assignment to NAME is performed. This affects the result of array assignments with the A flag. It's unclear to me what is meant by "Note that this option has nothing to do with word splitting" here. It seems the SH_WORD_SPLIT description makes a distinction between "field splitting" and "word splitting", but then again throughout the manual (including the $=spec description above), "word splitting" and "field splitting" are used interchangeably to refer to the same thing. Was the intended meaning something like: "Note that it does not affect how the shell delimits tokens" or something like that? From: https://unix.stackexchange.com/questions/26661/what-is-word-splitting-why-is-it-important-in-shell-programming -- Stephane