From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 8B7B72134F for ; Sat, 13 Apr 2024 23:02:37 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1713042157; b=OsSRh9GbvjsNUtQCXnJYP69RTmrKAiyp1lOaDrGYtoQOtTyXCC1nFl4OPoJF9/M1eERWcB5pyO p0ayeyGuRtrWj1xmSyQSdaquctVDGsWMn/zDnsI3WYNUdO7/0B0aT4Dw4RMWNh/lfSlWBinNm/ mW8hX/B85S5ULNlHG+gxtmNR4Qc1bCQCNmc14U9CD92XCk7iZhpc+PX0kvOCulo0hYFZyrY7i+ Ghdb/IaubPXgTNLZPghybEfVlJLdVDkzqhMRLeGTP8z4HMyJN5uQu0K/+JPK/dQ2uA0LIgc9cq 8x3IhGLwZQs99NFI1weWtQ0cQ9aI5DhtOGOKp9RsY/TMgw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1713042157; bh=HhEeYO03wa9LYvuIS1BCYtIzYJxG7MxZ1BaAV2Y8k8U=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ei9+nAc/5qQ977AkHXzPtFzSOfKttNadf+hjbo5rEPAajSh2DwwC3d6fBu31i2BQ2d7x3BtUbo 5oi5u547Ts7/8z89hvQyfkIOOTKJaySnB/pUIEmv/j4dMyLg4VpI0gEQ2Z4KqUqLtBZjs/aMEE XcXBHlHK6+R1pdri+2XoyRAFYy0t8b7kzIQP7AMjLQQ6oPquKEi2D1MuCEu8d9uez5tfZ3ESwg FbbAj7cs1KMfYq8VsqOVniDyLseni8BPmPkeOVZhTJDJGJPfsz5svuXAjRRGRLIsn6zzekkSVS wnbWDcaAC9yjtQsJfjJBRLmuUKbE6isluI67BcGgAT0tgA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0UlogAWfR2tARytG0uisPLIGlg8B+Yri8zttHmMOISY=; b=p3ioNhU6uHE/1vHAh0jv5dZbDD 6Hkhk4WodVvuevCHDhC/NdsUNeWSB/gOpM7YacaV3EqWd/f8eOapXQmxvksAy3DJ0g9knu2/ARRec TQEFqqFVmI4VWu284JyXzJdr3KNYkG6on6577wr1cyJAxbKR6reX5kSbQlEW9i8pAbVM0GVJYKAX+ NQmzOdcAdG4xFLJwlYbBBKNhvt5p/zpfvZ/tiftZjMdx7TNCRk3J6Smn1+7w6uNaSgL3cOG6hqgw4 RCGig709RsTbTvc4C0NkOUN0zMwI+uH4LyWveEi963yPDp1ePyuEFli2moz218XIPB01eXznfKDF1 P6CXd52w==; Received: by zero.zsh.org with local id 1rvkWD-00048z-02; Sat, 13 Apr 2024 21:02:37 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f41.google.com ([209.85.218.41]:50514) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rvkVa-0003RS-4z; Sat, 13 Apr 2024 21:01:58 +0000 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a4715991c32so255066666b.1 for ; Sat, 13 Apr 2024 14:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1713042117; x=1713646917; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0UlogAWfR2tARytG0uisPLIGlg8B+Yri8zttHmMOISY=; b=aj6j6lQzklb7R9CKUhp34IJdCvQBAYssUDKRa2rurG3z5SBwhLpqhF5JnOMLaa7fSl 3gAE1ESiZnw5cbyYka/giYI5ktvwUeOxjy5glc53euwuUutBREZk+y53pXb6KoYkXeo1 19F31bY+mhAq8RQJBMW2krZaCbXJv9vIOGNx9uVdEx0DNXY1ajFTXArS2I8xnzzaonck U/Hul87SjHCJvHCPXI+xV6NPDxbrSX1dwbbOiOsz1Ebir60x5xsqbHE6inPgYKpRxkfT K3tI2BA+1JLglTMHkbNqor9dSr7E/OiwPqe+uJnDIuGOJZRptynkR245VwfyxsfucQTO ARsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713042117; x=1713646917; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0UlogAWfR2tARytG0uisPLIGlg8B+Yri8zttHmMOISY=; b=hqz3wJI78o+QtmROrtw9DGZV5LHjaIB6MiskNFXsq4pOBJgkKD6KAzZjH2LVDmYyyu yqWSdUPRDBlUKlb2oRNSGRB/80fYIT1mjNEjQqC2i/z30YnaY8szd+mFanabnHNf2jCr eRYqqjD1NEjP6WRK2vcX0vXF84wASLk/OLcT6rlWJcEAWz2LG8W4bYJcYMDwvOWR8R0W kOCHJTMgKPytJGe5G6gM1c2LgyY4pXcBEbApDvehJuruwKAGQLRYWJvU68nDEFuVAsQF k10i2Nnrxb+w4xyLIJHmfLLExSSbfQphHALk8osu7CZP6ZXe7uCP+UypKBgVVsfe4QNm 7Xxw== X-Gm-Message-State: AOJu0YycddDbd2Ybz1uXFoYPHma/CyArpTupXg0g1nJ+XOpndm4qktLZ Qhy54IwFaAWHK19D8JR4QnpyjJRN+caHajtGHyztgZZC5OPbxJBT183NGm6dhXLFSgjKPSKOSBY dBfDsGERfiCnoZ6124W8oP4g8yURbEhirdHPBuwRB01iSpJg2DA== X-Google-Smtp-Source: AGHT+IGMS2nGf89WJhWLAahVc9bLzDYkWQZFUAs04yIsUksTucWBGHqeQObg93RUXmjPFbt5BVNqi1/JXC6QRPWC6QI= X-Received: by 2002:a17:906:4086:b0:a51:df52:5a65 with SMTP id u6-20020a170906408600b00a51df525a65mr4125133ejj.2.1713042117624; Sat, 13 Apr 2024 14:01:57 -0700 (PDT) MIME-Version: 1.0 References: <97793422-1543-4ba6-b52b-ff93eba03ab1@eastlink.ca> <7ba17739-6024-439b-a4a7-dd88fddfa2e4@eastlink.ca> <7333cf23-1fe7-4b3d-a7c1-f07697c5f062@eastlink.ca> <1e53a3f7-9bdb-45ae-81c7-7d0ec1a6a541@app.fastmail.com> <3cc19e86-e953-4e2f-9e57-30ff84f15fdf@eastlink.ca> <0a0b9ec3-4661-4386-9fbf-b3152a46001e@eastlink.ca> In-Reply-To: From: Bart Schaefer Date: Sat, 13 Apr 2024 14:01:46 -0700 Message-ID: Subject: Re: triviality regarding $# counts To: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29811 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sat, Apr 13, 2024 at 1:36=E2=80=AFPM Ray Andrews wrote: > > On 2024-04-13 12:45, Bart Schaefer wrote: > > redline () { echo -e "$red$*$nrm" } > > > So, compared to the previous expansion, how would '$*' expand there? redline a b c would mean echo -e "$red$1 $2 $3$nrm" One word, with two quoted spaces, instead of three words. > I'm unclear as to the practical difference. For "echo" it doesn't matter because echo is also going to paste its arguments together, but it might matter to some other command. > Anyway .... when my typedef -p line showed those " ' ' " with no > dollar -- which seemed to me to forbid that " $'...' " grammar -- > what I should read is that that element has nothing quoted ergo no > 'controller' -- no expansion flag -- is needed. Yes? IOW the dollar > might have been put there, but it has no work to do so is simply > omitted. Logical. Do I have that right, for once? You do, though I would caution not to think of the $ as an "expansion flag" -- it's just part of the quoting syntax.