From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23362 invoked by alias); 22 Feb 2017 19:58:59 -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: 40617 Received: (qmail 19592 invoked from network); 22 Feb 2017 19:58:59 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.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(205.235.26.22):SA:0(0.5/5.0):. Processed in 1.701726 secs); 22 Feb 2017 19:58:59 -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=0.5 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=Kcsy=2D=brasslantern.com=schaefer@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bounces.park01.gkg.net does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=resent-from:resent-message-id:resent-date:resent-to:from:message-id :date:in-reply-to:comments:references:to:subject:mime-version; bh=gxyue0p1nVjX9XQMyNBwxck27b9Dupn9UH3H//XXwy0=; b=YyPjYXvAJfZ8CYmTHUq0vqXG3AwUCyrUzKcq1HXUe76CTPIaSQO0ESW6+7US3a2PAJ cx8jf/+ZzecaCFEQR+GPMfuPNyKZB/fNxmCGBofo6ophPCELQPAl8vY4FmtTFFh+JEHc lt9nUzkRpYIBXdeGZcpwHD4JKDRZcdt0qPEehYS8nfdhKWEFvjyFZsxSPWh1Ywku8CYu L1i/PX48xBRW/wEtvUqQyRNaj02K2T6jXNpcIme7KKKSQvAW8dSMZ0H2dh1WAO07KyCL Z5VpTzNhVRJJUrcJM1bFKGn4obaxTjiB/GB9C+Q1uW4I4LcDTJG8vUvZcAA7N+zQIeMr i0aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:resent-from:resent-message-id:resent-date :resent-to:from:message-id:date:in-reply-to:comments:references:to :subject:mime-version; bh=gxyue0p1nVjX9XQMyNBwxck27b9Dupn9UH3H//XXwy0=; b=B709YynMFuc2nYPTDJcn8TU8M81y6MPBEUfT6Zzy8TYRtab58zdyzk8T6oYqPimLc6 f3JiL2POc3gHeq2PHEErOMp148fKq81Qxy5sZByzUFjdZWwXGVd2FsUL125L3cb/v6mK U1CFTMaU3987YQHpN1pRwlLJcrXLknJNUadku864gVy+BGoAxC+p5Ovz6vTbg6H8Mu8n kYQGlTnEFAgWkTywWqeRePiWd/I9aix/7hnCgNgXZBQ8vi2K5QtTm/YyhXOSOGpjmanx 8fkwxxhN+xLDT6nZOKbQZwZN3RsUp+11Yi+ZGqB91ICsmMe3DlRIW9xuDBsIfoGtXhtz 1urA== X-Gm-Message-State: AMke39lmm7o6vYnI6WUTP/y9YSPjlTKrawhwqwOAjBDUWkcsMVTP29dA4dOu0YOLOwwisg== X-Received: by 10.31.52.193 with SMTP id b184mr15653721vka.156.1487793506584; Wed, 22 Feb 2017 11:58:26 -0800 (PST) Resent-From: Bart Schaefer Resent-Message-Id: <170222115830.ZM18884@torch.brasslantern.com> Resent-Date: Wed, 22 Feb 2017 11:58:30 -0800 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Resent-To: zsh-workers@closedmail.org From: Bart Schaefer Message-Id: <170222115802.ZM18878@torch.brasslantern.com> Date: Wed, 22 Feb 2017 11:58:02 -0800 In-Reply-To: <1487763613.2941773.889107120.2750751A@webmail.messagingengine.com> Comments: In reply to Sebastian Gniazdowski "[PATCH] Documentation on (A) Create array parameter" (Feb 22, 3:40am) References: <1487763613.2941773.889107120.2750751A@webmail.messagingengine.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] Documentation on (A) Create array parameter MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 22, 3:40am, Sebastian Gniazdowski wrote: } } (A) completion and documentation suggest straight creation: There's no such thing as "straight creation" of a parameter; the whole shell model depends on dynamic scoping. Assignments *always* apply to any parameter that is already in scope, the only way to change that is by declaring the parameter with typeset/local/etc. Furthermore, this specific instance is with reference to the earlier documentation for ${NAME=WORD} et al. which says: In the first form, if NAME is unset then set it to WORD; in the second form, if NAME is unset or null then set it to WORD; and in the third form, unconditionally set NAME to WORD. There'd be no point in calling out the difference between set, unset, and set but null parameters if they were being "created" in the way you have interpreted it here. So if the use of the word "create" here is actually confusing, it's that word that should be changed; clarifying semantics of dynamic scoping is something for a much larger context. Would it have led you astray if instead the paragraph said "Assign as an array parameter ..." ?