Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: declare -p and -H (hideval)
- X-seq: zsh-users 22696
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: declare -p and -H (hideval)
- Date: Sun, 14 May 2017 01:04:44 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=wXnMPcNMpAKvUyznNo Xxf2934SU4w1vsxZShxbQNOd8=; b=nSpednUC8ZYMQ3pc1SorEECHeu+WRAwnJd 3htPUvQCUchujKGRk+Jdv0uZ758oq0NmmGYYxxa6H7rc+0zv+992EI8Bx65qR0eo Kao0ybaaGqFagyosuYyR4b7teSOCocpD1+PoH8dvSe+CPZbfzTU//7rADtc0TGKJ LR7P5idfTAlF68kz8x0lOCohjCXve4W9GJk+EtPQKH/v1586ELSiWY6LXpusxirJ +HlRfC+EK+SPWfryKAHUoTdXgLuDGDOaBxbvvd+Kq1Di8bMHlssn1kOjnCzCdWkV 1ZAQOKQI7TXeRwySbUD3ToTWb98GkBktLjJPxC0bBkg6ISrHJDDw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=wXnMPcNMpAKvUyznNo Xxf2934SU4w1vsxZShxbQNOd8=; b=ebPhWc/9wxhS6fUCI2DBEfFbeWO5wR+Ty2 jyPEzfxP/MzYfG1wAGCGvAzWnt3vyDCJ1iuNNYlwMvkuKm2LC+U1smKUKWH/xDJJ EiSMR/Ok2LFloJLTgRtoux2o/n7gcw7+aF7iYgwHwiMOWkiEqsf8SzfGVFlAUPib Mrvs5ThPVcQ2rvRWLVmZgD8Ho/CvZu0KgWiYFZkP3c0oZwl7VlzU/5s4Rmvu7pro Umrkv2c3LKGThogMFGrkDiO8LxZcganOozEQY1+nvHeLs+4WCBXb3YEGsCY7unTH tVCB7IBE60GRdJ5TT/BdyjWyDyI5Ewo+Lm/hmUV0GxEAUE5OawFA==
- In-reply-to: <170512150302.ZM9904@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <etPan.5915e115.238e1f29.6b4c@MacMini.local> <170512150302.ZM9904@torch.brasslantern.com>
Bart Schaefer wrote on Fri, May 12, 2017 at 15:03:02 -0700:
> On May 12, 6:21pm, Sebastian Gniazdowski wrote:
> }
> } I use "declare -p" there, when user selects a parameter. No value is
> } being shown for -H parameters. Is this correct?
>
> Yes. Manual for -p option says:
>
> If the -p option is given, parameters and values are printed
> in the form of a typeset command with an assignment,
> regardless of other flags and options. Note that the -H flag
> on parameters is respected; no value will be shown for these
> parameters.
>
> This takes precedence over the -m flag, etc.
The fact remains that the "does not apply" clause that Sebastian quoted
does not match the implementation. The question is just which of them
should be fixed to match the other. (Code archeology may answer this,
but I'm not going to do it tonight.)
> } Any way to avoid -H effects with typeset -p?
>
> It would appear not.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author