From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5187 invoked by alias); 16 Mar 2018 18:28:28 -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: 42471 Received: (qmail 20108 invoked by uid 1010); 16 Mar 2018 18:28:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf0-f53.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(209.85.215.53):SA:0(-1.9/5.0):. Processed in 0.905798 secs); 16 Mar 2018 18:28:28 -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,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: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4u+yr+ncsBObI7tGHec7Uy8WU8KuWoj4A1TC3+OyPVA=; b=QouTs/xGKF24HtBVA7obLcQ+I+OwwGiNevflsRueaiqou4f46upFGFn69kegeEuOGp RRjaGDMGJvAk6PM7pFp7+ud500zl9uz3bDHYMl0Bd8wq/w9etQTU09SBVSoj/rYPL2wU PdO7vpIwwP+CiT+Zq5T6MJphNq8dqLGt8fTRuuC8oh1rRXRp/BcPqtseSBZ9QREe7zwu mQKMh8PgnWQ6s6f8hV/JrpgEVHcyXp+6eqZJK2Gla0ZPiiazLcu2Le7wo3Hhu8klS5Jp T41nsvjbvpzP3IolUFgL34BXvh1QharqfUOI09wlTR4jMnipK1glkc8sqbcD97Sjr0yh M1Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4u+yr+ncsBObI7tGHec7Uy8WU8KuWoj4A1TC3+OyPVA=; b=oBJB0vYwXcH5ODAVIN+H3EJ8K1KcvO7q5zOvEH9LjGx1Sh6cJ1yercwz5++L947QyY KeV+OMhRTGwnNdzcGhgz2IEH29DNYt+a0faLYa8WQ9NaB+FJNPXCkEKq19bsf4lGARfS B0e5KZZvkB6Q1GJqTAjHZyNryUfE6MaOxuetYps3FZtlynyLe48aU7ET7TW6uj3TolxP DveKnCuyJPP59iKhznmiQTLiAR9JWsrlZPVA5ekPGonpgKuuKNIJCesN6Vlr0euhuh4L jQX1yMTeJuphf0b1Sb3y438pVgIzxnDRgpzIppDNef06Kp1FvhQuAcRslm47u8I5SFck JrTw== X-Gm-Message-State: AElRT7GK0OxC2Ur3oGabUkD3V8XSvR44EBvSw5Qwf6mgR2d06iCgvCAG a63QSOh1veazsr7jdQCLtdjDSCKYT2rmQxQcE6f4Qdlj X-Google-Smtp-Source: AG47ELui7/u6MjhDkZh7iZm6g/G9ZYrpUYev+v33hP4RODDVywjbphkF4BwMHnwW6D7KkyGAd+cIEXIraxqvfV7KFu8= X-Received: by 2002:a19:3bc6:: with SMTP id d67-v6mr2184719lfl.100.1521224903392; Fri, 16 Mar 2018 11:28:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180316172613.GB23397@chaz.gmail.com> References: <20180311094458.GA6450@chaz.gmail.com> <180311112407.ZM2303@torch.brasslantern.com> <20180311205348.GC6450@chaz.gmail.com> <20180312074329.GA6416@chaz.gmail.com> <20180312080727.GB6416@chaz.gmail.com> <20180316172613.GB23397@chaz.gmail.com> From: Bart Schaefer Date: Fri, 16 Mar 2018 11:28:23 -0700 Message-ID: Subject: Re: [doc] "sh_word_split nothing to do with word splitting"? To: Martijn Dekker , "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Fri, Mar 16, 2018 at 10:26 AM, Stephane Chazelas wrote: > So, how about this new take at it? Renders (in info) as: > > SH_WORD_SPLIT (-y) > Causes $IFS field splitting to be performed on unquoted parameter > expansions in addition to command substitutions. Note that This is OK, I just keep thinking there should be a reference back to the shell grammar; field splitting applies to anything identified in the grammar by the token WORD provided that the WORD is not quoted. Arithmetic expressions are treated as if double-quoted. That's really all there is to it. Of course we don't formally spell out the grammer for the basic cases, instead describing it in prose in the first few paragraphs under "simple commands" ... and the "general comments on syntax" direct one to *this* entry, so I suppose the detail is in fact needed here.