From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2441 invoked from network); 25 Jan 2023 18:35:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2023 18:35:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674671747; b=aen+tB0y7TqWVYM3x7mGAGReYV5nGMTJcwC2mJ1rtKO305CxWd9MABEhGR79oCPPHUViaFmBRw 33KbLobQdq9YkmXb+aeVD7/zjb0TCSMTSMKsq/mlgcqzX1xRuH7CjD+53ZyqIKH5xaZCxvAri1 W81F5SXdRcE6sa0tr3aAYXQPA/kwlKlOlqNa1yc3442iIt2SvkBFkuqbqR9r64LynA86596M5A MjtXkxSB9U7CblCtr016uendg4u3qPtv/3sGmLhfttNuw4famVDF+sf+lZaWFl1rLEWjWnA0kw zkIkWj3RziOaqF6Spj7Qt+dwtLgDUsDDzvYZMERPfLPfLg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f173.google.com) smtp.remote-ip=209.85.208.173; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1674671747; bh=Q8BFFor9FzJLaMWoov4YIdrVl5NKdBCJ05MmyA89N4E=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=UC+MuFqJqRmoUfKlkV407Ik7yXgppTY95hPJ4QJFYE9n7I8qC/JbCAShIMAZzDxlpNb8h5YDBu U1EIRhH13GaVhlMsvfhnR5ng7BHDxKy7hxyP0Sl5RlOzFWkeAIvpw+OYThv/GK1MDU8rp4l/So qi3VY633EU8kJAbVDQ2Q4lLO7JNCp9gYymxGLhtbXiKkyLLQIViOmp2kAwElqJ1ky0FsjAFaBR u8G5tjqob46MbfS6abrLGVZzSfdMEUDSorxWEhKtaQ62D2qoEdsG+6GRJk4N29hihYllEIlrDP J0/kxZYAR09l6b+54IO6b5QQw/09MMqUpye0ZWOOMjJaHw==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=bWxFhQFIOJrjZyZSuGIpyerSKPgj932zoeeRUglzgbY=; b=Q/EA893mItBEpK+KhHVAXHaBf2 r+kuItA4IJ84SxyF8U+NExe+qOY8zWD37blOhFv6g6zV2ET/6MsO8LrqsolUeHtZ+D3W13oX7FjgN 44TuNadLfQAB338zfApkFnKUjnR+v6y2mpmHQze4VfoOqQVbMDbUykZP0by2fMBfem2zJmqx+kzR3 VEFKMmgh//lpbOz1MLenPhdzav29St+loHvJha/QE97w24Xd97IumNZrRROQHgDQmU8qwTh6cT+pf h2whoGnXBTuxkvN/V7FgoNhIEIfx20s+h1qnjJ6njnEpfchQe3xRbYHVR9y86GsSnwbZvF5GDNNnD 7+gbzcwA==; Received: by zero.zsh.org with local id 1pKkcd-000FAb-26; Wed, 25 Jan 2023 18:35:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f173.google.com) smtp.remote-ip=209.85.208.173; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f173.google.com ([209.85.208.173]:46716) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pKkbe-000EPs-Fu; Wed, 25 Jan 2023 18:34:47 +0000 Received: by mail-lj1-f173.google.com with SMTP id t12so13788815lji.13 for ; Wed, 25 Jan 2023 10:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bWxFhQFIOJrjZyZSuGIpyerSKPgj932zoeeRUglzgbY=; b=YlhNDvcc3MCUaVEXvCf/39QuwGUcCCfAQe0fRQ+KbYLpknfpp8CSyxFSKzcWY1MrAb V9Xr6K+amJcYkFIRMI7aiDOU1KX6O25fXJNU+2zP503TgqEC08JwR69llfihJuNZ9v0Y uRboCbIN83PadvkOfyMDCx+1N85gv6AirpifsmgSDDQy47fFP0Tmzbelk2wCxDBJzF9u 5LZUaG/s3i0f3yyvOKzspvUhO8CApjnsD3hRDMT362HgkOPDwTiAAJiPIusoA7D8O7Or PMY3C7nHRs5tSyidIzGllMvZoJoUUMD+ktncqWWzFCOkXAdzusmLSJvnf+cEQ+hlW2ZH jP0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc: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=bWxFhQFIOJrjZyZSuGIpyerSKPgj932zoeeRUglzgbY=; b=YXmyroR2o4xOmorCsjq8+GGOAyTTTnO1opbpt/OL8yaQhVFJVBXmygzl83VFqMpQE4 IZVMtBx3++tofyhaGP8YsONWbiwhc9NLKSw8Pjr9IjXXLnH57BMVlyScl05PEn9QEUzn Kpdt2O+HB1lzq6Fyc1Kp0+9DY7vZH5zAXdc5awJexgutox19mhdC4HeE5C4i9IlNrbJh cKK/68TLKfno5R2xbWutd1hOB5v9rPCNibXp4i4BwSja+LHtpyYsMCwZMdM+05A6y9t3 UJ0kOXwkOISyIgi7msq9aaRUGFJJQ3xndmObtOVQhAsoUt1T//S2DoitAD7P5SFiejeB Pytw== X-Gm-Message-State: AFqh2kpwevw9cEIfbnKXk2WjYgnvha6zJ7ruPZ51MHNGU5USrsNGFJUn v2up+4xKcEJTPyCUNFFBpF5HZENgrHleUqi0qDGS64meHY0= X-Google-Smtp-Source: AMrXdXt2gSKrn4TN2PjOonah1RUtt3qjdOjlLOiRFHYulS8ciWO5B5DnviujE2xJAsdWEDjomYRL1dL1ySDPjQBY4oQ= X-Received: by 2002:a2e:9e0d:0:b0:28b:88da:35b with SMTP id e13-20020a2e9e0d000000b0028b88da035bmr2873273ljk.364.1674671685702; Wed, 25 Jan 2023 10:34:45 -0800 (PST) MIME-Version: 1.0 References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <07323898-9985-4e9f-8b54-c08fd8510fe8@app.fastmail.com> <08102bc6-b331-504f-fcd5-28fa3cdb0e2f@eastlink.ca> <00818033-2566-52b3-33a9-62591a93d707@eastlink.ca> <394f641a-318d-4e87-4f9d-de54119b7dc7@eastlink.ca> <9b64443d-2d97-a4d9-0028-4b950c319c1a@eastlink.ca> In-Reply-To: <9b64443d-2d97-a4d9-0028-4b950c319c1a@eastlink.ca> From: Roman Perepelitsa Date: Wed, 25 Jan 2023 19:34:33 +0100 Message-ID: Subject: Re: path PATH To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 28796 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 Wed, Jan 25, 2023 at 7:26 PM Ray Andrews wrote: > > On 2023-01-25 09:37, Roman Perepelitsa wrote: > > > > This value is usually called "empty" or "null". The parameter is not > > unset though. > > > Ah. Ok, that's the correct terminology. Yeah. 'unset' implies the var > itself does not exist vs. having a null value. So how can I check for > all null parameters? You can use [[ -z ]] for that. for name in ${(k)parameters}; do if [[ -z ${(P)name} ]]; then print -r -- $name fi done > Come to that, how many fundamental types are there? There is =E2=80=98scalar=E2=80=99, =E2=80=98array=E2=80=99, =E2=80=98intege= r=E2=80=99, =E2=80=98float=E2=80=99 or =E2=80=98association=E2=80=99. I copied it straight from the docs. Roman.