Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug with unset variables
- X-seq: zsh-workers 47664
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: Bug with unset variables
- Date: Fri, 27 Nov 2020 15:44:39 +0000
- Archived-at: <https://zsh.org/workers/47664>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/20201127154439.GC26720%40tarpaulin.shahaf.local2>
- Authentication-results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm2; bh=loWrmbGTOPVBVC96gj167NQuutajP4a0Xk4i8FDw 7wU=; b=U6JyLjAeL8doI3pG1PgzAdkVBt8GEYyifGeFCz8NGZdtP/absxAWML55 mbEZDm51TsIKcvyjke/Zac9a3BHav4TnMewZw7WP3O/FLJYHuMRcgTRWIKNaeP0J 0bUzIQxRIfKDF3bCFPpk9ObzqVLT/FKKI9Ww8rEork+R2L/rYzQGXko/d5ANegkB zDGJS6YTPyakyTRrXngUYOkIppb78OAIHCsFV8sOnBfP44Vp5nDN17D3a5UuJxSu asiqO2qxFT7zkvVuGjH2RV2f4wBAUGzGaAVD4ARgSO3te7G/RMvJZN4/71BWIM1M Dra7UKGQzdTMdPM07Ez0z2iDoe79OQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=loWrmbGTOPVBVC96gj167NQuutajP4a0Xk4i8FDw7 wU=; b=k2RIZzpCi46+ZNAXUzDkfPhVsYRpoarz80n18uqdLw2sVYchAzDgY4TAx 11ZijajH7wsexeU7ITqXoi1U4Gule/CDGWg1qYW/ycLz19yoAPvHchPVhreMmPEA f+8eB8QeD1OPcdQI3J8cvvv0OB7X7xjkXzw/0FUOaIq9AQDKK9KrZQGdZ61wTV9Q 8bg/q53a54o8g/38BpItVJIWKrpnd/aYLV/qwBc9ymQkQpuVTlGtarJp8JXLc8TC /g/8Oe19aVxgP9UBgEgV14GDM9QSY74n0mjlqLrRS76sxT88/XKHxAPoxkDv4oVk VoZPBckJCg5MZcALrFmujZgV7fezQ==
- In-reply-to: <CAMP44s1RLs-ASYFyvjvj7eGta5_WnsXSH_8jAXf-Zufk569E1Q@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAN=4vMqr-MBuzikqkSJEnY5=hW6xjv_TcW_paZV9oKEXnDsmrw@mail.gmail.com> <CAMP44s0sU0B1fQq=BEJV+jp_jtjxpFbz6K=wqNpukLK4i31P4g@mail.gmail.com> <CAH+w=7a3vOa2+YXpOS0eCGTr_TGNe1uhPBu+B1Xb_4OmmhJk1A@mail.gmail.com> <CAMP44s2LRtJLMc-RWX6_o7qO_cshfcuWL0-NtrWfqYp9o7HcEA@mail.gmail.com> <CAH+w=7YZQA=vhA=-jVzYLvP_XmrN6f5Ra8TH5LsMrza8GVsKvQ@mail.gmail.com> <CAMP44s1m3zNAeZ9Gn3XcG0pHeavD9K_eXOjZz3LGoUvdpzucVA@mail.gmail.com> <CAH+w=7bhs3BVrBMjbcxPhrxh0fXMKeBVooNknLts+4QxHQYOZA@mail.gmail.com> <CAMP44s0QMzJuMPoMZ1BR=+Y2_n4iEE-coXVtmFTdaHj4AuxTVw@mail.gmail.com> <CAH+w=7Z+Brh5KfwUJakoaKfQ39WQbYoRELyfpu3YO1Ro-Ewvfg@mail.gmail.com> <CAMP44s1RLs-ASYFyvjvj7eGta5_WnsXSH_8jAXf-Zufk569E1Q@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
Felipe Contreras wrote on Wed, Nov 25, 2020 at 02:46:40 -0600:
> Maybe there's a better way to describe this fact. Maybe Git's notion
> of logically separate changes [1] helps (e.g. you should not mix
> whitespace cleanups with functional changes). But the fact is that in
> virtually all languages (and bash and ksh) there's an idiom to declare
> a local variable and *only* declare a local variable (not do anything
> else).
>
> Can we at least agree on that? In zsh typeset does *two* things.
I'd rather say that «typeset» does one thing — it ${verb}s a variable
(for some value of $verb) — and the zsh data model doesn't feature
a "Not really a value" value, so the variable necessarily gets _some_
value, like «int foo;» in C.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author