misiek: rc-scripts DEVELOPMENT

Michal Moskal malekith at pld.org.pl
Mon Jun 11 18:56:12 CEST 2001


On Mon, Jun 11, 2001 at 06:20:21PM +0200, Jan Rekorajski wrote:
> [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.

Hmmm... if there is no local in ksh93 and no typeset (well, there is
patch...) in ash -- both reasons are equally good (oh, maybe with
exception, that ksh93 is considerd more likly a candidate for /bin/sh).

> > 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.

About typeset being ksh extension?

> > anyway, manual pages for shells are misleading when it comes to
> > standards...
> 
> And here you are right ;)

:)

-- 
: Michal ``,/\/\,       '' Moskal    | |            : GCS {C,UL}++++$
:          |    |alekith      @    |)|(| . org . pl : {E--, W, w-,M}-
:                                  |                : {b,e>+}++ !tv h
: Current project:  http://aleph-0.dhs.org/ywindow/ : PLD Team member



More information about the pld-devel-en mailing list