Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: typesetting parameters
- X-seq: zsh-users 7538
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: typesetting parameters
- Date: Sun, 13 Jun 2004 21:58:57 -0700 (PDT)
- In-reply-to: <26243486-BDAE-11D8-BDC7-000A95D2C79E@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: zsh-users@xxxxxxxxxx
- Sender: schaefer@xxxxxxxxxxxxxxxxxx
On Sun, 13 Jun 2004, lists wrote:
> I'm having difficulty understanding why one would define a parameter
> with typeset before using it.
One probably wouldn't, when interactively typing commands, unless one
wanted to use the special attributes such as padding, alignment, other
integer bases, or floating-point precision.
The primary time/place and reason to use typeset is when defining shell
functions, to create variables that are local to the function scope. When
you use "local" that's really an alias for typeset.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author