misiek: rc-scripts DEVELOPMENT
Jan Rekorajski
baggins-pld at sith.mimuw.edu.pl
Mon Jun 11 18:20:21 CEST 2001
[poniedziałek, 11 czerwiec 2001], Michal Moskal napisał(a):
> On Sat, Jun 09, 2001 at 05:17:27PM +0200, Jan Rekorajski wrote:
> > > > use typeset instead local (baggins)
> > >
> > > Why? local is in SUS, typeset is not.
> >
> > man ksh
> > man ksh93
> > man bash
>
> so?:) didn't seen anything intresting there.
so you didn't try hard enough :>
from pdksh.1:
local='typeset'
from bash.1:
local [option] [name[=value] ...]
typeset [-afFirx] [-p] [name[=value]]
in ksh93 there is no 'local', only typeset which does what the
'local' in pdksh do.
> Well i was wrong there is no sign of local nor typeset in sus.
> However typeset is surly ksh extension, maybe if rc scripts were
> #!/bin/ksh... and for instance local is also implemented in ash.
You are obviously wrong.
> anyway, manual pages for shells are misleading when it comes to
> standards...
And here you are right ;)
Jan
--
Jan Rękorajski | ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC | -- TROOPS by Kevin Rubio
More information about the pld-devel-en
mailing list