zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: declare -p and -H (hideval)
Date: Sun, 14 May 2017 01:04:44 +0000	[thread overview]
Message-ID: <20170514010444.GA4046@fujitsu.shahaf.local2> (raw)
In-Reply-To: <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.


  reply	other threads:[~2017-05-14  1:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12 16:21 Sebastian Gniazdowski
2017-05-12 22:03 ` Bart Schaefer
2017-05-14  1:04   ` Daniel Shahaf [this message]
2017-05-14 17:22     ` Bart Schaefer
2017-05-15 13:36       ` Daniel Shahaf
2017-05-15 20:03         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170514010444.GA4046@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).