Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: declare -p and -H (hideval)
- X-seq: zsh-users 22699
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: declare -p and -H (hideval)
- Date: Mon, 15 May 2017 13:03:09 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :reply-to:mime-version; bh=dqOLuprRTK4rBlOqVjD7Ar7aCGNQ11UxkzNeEdIO+CY=; b=AhrwT3AIq28DSXpzbKzp0c1n8GoWHEQGXfW5dihw5ak1aD0/a3WGSP+gydjlP8txGl /Nl0JI2Um6m0C2wAjN1qwz/yya1ILRtUfOcMkFLgSDjlgT2GZfZOfpr4D4s5uBfRFpLK F39DqKG6ELckLfDZHfp5zjf0G3XRBAfMczLjGHYcCsIVk+47DCLnJ3lhX6NyYR1EOnO8 HKuD0zQf1gHmCUEe90EDbuvXnGULODBsWBhCO/+psvdLr15tkOPLAJPygVIkKSqeFDgJ g9AiNgwlNQ/zXF8kOUgnab5oPgQW88+m+OcJSLQkezOsY7DonYvPkOyGtgq86U0Acv8W vgdg==
- In-reply-to: <20170515133610.GA21381@fujitsu.shahaf.local2>
- 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> <20170514010444.GA4046@fujitsu.shahaf.local2> <170514102207.ZM15414@torch.brasslantern.com> <20170515133610.GA21381@fujitsu.shahaf.local2>
- Reply-to: zsh-workers@xxxxxxx
On May 15, 1:36pm, Daniel Shahaf wrote:
}
} Bart Schaefer wrote on Sun, May 14, 2017 at 10:22:07 -0700:
} > It'd be quite simple to make -pm behave differently
}
} I went down the rabbit hole, and it seems pretty sane so far:
This (changing the default behavior of -p) isn't where I'd have gone
with this. I'd have e.g. added PRINT_INCLUDEVALUE to the flags in
the case of -m and -p used together. Even in your patch, I don't
see any purpose to PRINT_ALL that isn't covered by _INCLUDEVALUE.
} + { PM_EXPORTED, "exported", 'x', 0},
} + { PM_HIDE, "hiding", 'h', 0},
} + { PM_HIDEVAL, "hidden value", 'H', 0}
I don't think it's quite that easy. For one thing PM_HIDE can be
attached to a top-level variable, but has no effect there, so it's
not clear whether to include it in the typeset output or if instead
it needs special handling ala PM_EXPORTED.
Follow-ups to zsh-workers.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author