zsh-users
 help / color / mirror / code / Atom feed
From: Rik Faith <faith@cs.unc.edu>
To: Peter Stephenson <pws@ifh.de>
Cc: Rik Faith <faith@cs.unc.edu>, zsh-users@math.gatech.edu
Subject: Re: local after setopt allexport?
Date: Thu, 8 Aug 1996 22:50:52 -0400	[thread overview]
Message-ID: <199608090250.WAA00413@winter.cs.unc.edu> (raw)
In-Reply-To: [Peter Stephenson <pws@ifh.de>] Wed  7 Aug 1996 09:29:22 +0200

On Wed  7 Aug 1996 09:29:22 +0200,
   Peter Stephenson <pws@ifh.de> wrote:
> faith@cs.unc.edu wrote:
> > Is there a way to keep variables from being exported after setopt
> > allexport?
> 
> Variables are only exported when set, so you can temporarily unset the
> option and set the variable in a shell function to get this effect.
> You might need to make `noexport' more sophisticated.

Thanks for the work-around.

If this is not a compatibility or historical practice issue, I'd like to
suggest that the commands "local", "typeset", etc. all look like they are
used to declare the "type" of a variable.  As such, it seems that
"exportable" is a type attribute and that this attribute should be
associated with a variable for the remainder of its lifetime (or until
another typeset).  This could be implemented internally in zsh with a
tri-state flag: +x for exportable, -x for local, and ?x for "use the
current state of the allexport option".  If the export semantics in zsh can
be changed (and the maintainers are willing), I'll try to submit patches.
(But I don't want to do this if the current semantics are required by, for
example, ksh.)


  reply	other threads:[~1996-08-09  4:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-06 19:38 Rik Faith
1996-08-07  7:29 ` Peter Stephenson
1996-08-09  2:50   ` Rik Faith [this message]
1996-08-09  5:44     ` 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=199608090250.WAA00413@winter.cs.unc.edu \
    --to=faith@cs.unc.edu \
    --cc=pws@ifh.de \
    --cc=zsh-users@math.gatech.edu \
    /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).