Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
The emulation rabbit-hole RE typeset/unset
- X-seq: zsh-workers 47687
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: The emulation rabbit-hole RE typeset/unset
- Date: Fri, 27 Nov 2020 16:36:55 -0800
- Archived-at: <https://zsh.org/workers/47687>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAH%2Bw%3D7aQ_pNqHtgEqV6s02Z%2BV6Aih2g8hebMbjxHgdYJVKXYFQ%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-ot1-f54.google.com) smtp.remote-ip=209.85.210.54; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=9hCaj3XJzRBVSO90y/3wcH5g5GXB8a+L99idHr9PDbI=; b=rlueMSZ37rjLiMmLNwEunKhmLd3d63P1daHjNuKGsOUtU7UxwN9xUfM0ZvVHZbqFui yckC3J4S0LRxabY3iZ29aEDH0EhJiYLRo0B8zE4Go5r30s/6ZcQd0XTXKzgO0+VqtOHi ReWDM0L/qRa+Nqarc3j9XPXrD7/kePGFysThb2J8PUPlj0YUZwAIMumlpxiLxu4KfK3m IoSZcS62Ry882NnRf0e4Y2GxD3fjjGxU0EMRAsKT/BTj9B3pZnf7WqWIleQsXwIzrFQp D3KURYfWP1VNpMNx9mhAvZtlfFIH9OoqaCerFe+8S7RX96Xt/G/kIN5Wst4Djerj5iF1 WxVg==
- In-reply-to: <CAMP44s1Vb7BLHMaJTVwA=y1X3+UuocA3PGCuGVJRDMHAaG7zwg@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: <CAH+w=7Zag5MG5D=cRS2UMSsqJ0t=iw5MH9j8=HBO1Q77nbs03w@mail.gmail.com> <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <CAMP44s0-ki=TBzTwnqx10FcTLX4mbphwN88UCx0+h97JTecBWA@mail.gmail.com> <CAH+w=7bs9E7whJLugMLOXG05R-2S8Hjt+OOKK_KN+SMxv-Vvaw@mail.gmail.com> <CAMP44s2Ge-pOn1-gEXkq=oJX7ohL-b_20s9mJZAo1LB=ow+Duw@mail.gmail.com> <CAH+w=7bHCrpwbkZBOgwjwF7M9uo+1_ZEa53hxSwE2fuuBuQfyw@mail.gmail.com> <CAMP44s0WSt_J7TjyPEKvH9TxzWBvTVFTB-pK26G+9SacYeQrAw@mail.gmail.com> <CAH+w=7YtBvrpuXUM=MuHVRuBjf8uiRozKLJsHvYXJr9Cx=J-rQ@mail.gmail.com> <CAMP44s3s0dXtirZhi5e_Tir+3KKn2Kw4hseEj0uH12a7HB5Y=Q@mail.gmail.com> <CAH+w=7ZVthOMB=jJ+KkU1WipL2mbCgD69HfUtxGnu6Mbx1rOog@mail.gmail.com> <CAMP44s2ZJg75KEh+vL+EUOgJUF+oB6TLn5-1h55ktcKR67ZeJg@mail.gmail.com> <CAH+w=7arBoRxmFRH7wL_Sh-0tRe1Xyo_GKze+jkSdvYep7NMWg@mail.gmail.com> <CAMP44s1i6uC72LhqGmt_hg-YUoFtJTKcC6o2qTGLHZJ3tB56CA@mail.gmail.com> <CAH+w=7ZxhRr1TYFe_SuKaT5TKsceh7RDTeQ-hfcZF08ctWeTvg@mail.gmail.com> <CAMP44s1Vb7BLHMaJTVwA=y1X3+UuocA3PGCuGVJRDMHAaG7zwg@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Fri, Nov 27, 2020 at 4:00 PM Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> This is a bit tautological, because if the variable is unset, it can't
> be anything else but a string: param_is_unset(p) ->
> param_type_is_string(p).
This is manifestly not true in ksh and bash, because:
[[ ${foo-nil} = nil ]] implies foo is unset
{ typeset -i foo } declares foo is an integer, not a string
function ff { typeset -i foo; echo ${foo-nil}; } outputs nil
Do we care whether zsh emulates this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author