zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: typeset -T versus typeset -r, bug or feature?
Date: Mon, 11 Sep 2006 08:21:15 -0700	[thread overview]
Message-ID: <060911082115.ZM22434@torch.brasslantern.com> (raw)
In-Reply-To: <20060911144506.57da4d89.pws@csr.com>

On Sep 11,  2:45pm, Peter Stephenson wrote:
} Subject: Re: typeset -T versus typeset -r, bug or feature?
}
} Bart Schaefer <schaefer@brasslantern.com> wrote:
} > Do this in an interactive shell so that the third line doesn't cause the
} > shell to exit:
} > 
} > typeset -T READ write
} > typeset -r READ
} > READ=wrong
} zsh: read-only variable: READ
} > write=right
} > print $READ
} right
} 
} This is a feature.

OK, but note also that write=right did not convert write into a scalar
(see parallel thread about math assignment).  I'm not really griping
about this as it would mean an implicit un-tying, just noting a point
of interest. 


      reply	other threads:[~2006-09-11 15:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-06  3:24 Bart Schaefer
2006-09-11 13:45 ` Peter Stephenson
2006-09-11 15:21   ` Bart Schaefer [this message]

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=060911082115.ZM22434@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).