The $- variable stores all of the options give to the shell on invocation.
So if you are running a script that starts with #!/bin/ksh -x, then 'x' will
be in the letters given back. The O'Reily book "Learning the Korn Shell" has
a list of what some of the letters stand for on Page 311.
>From: "Robert L. Harris" ">Robert.L.Harris@rnd-consulting.com>
>To: Mandrake ">mandrake@mandrake.net>
>CC: "Robert L. Harris" ">Robert.L.Harris@rnd-consulting.com>, Atlanta Linux
>Enthusiasts ">ale@ale.org>
>Subject: Re: [ale] $- ?
>Date: Tue, 9 May 2000 14:49:59 -0600
>
>
>
>From the script I'm looking at, it seems like it's being used to determin
>if
>the script is being run in interactive vs/ crontype mode.
>
>Thus spake Mandrake (">mandrake@mandrake.net):
>
> > On Tue, May 09, 2000 at 02:46:26PM -0600, Robert L. Harris wrote:
> > >
> > >
> > > I'm looking at a ksh script. What does $- mean? I didn't see it in
>my
> > > man page on ksh.
> > >
> >
> > isn't that "all the remainder of command line params that haven't been
>used"
> >
> > --
> > (\) Mandrake (Geoff Harrison) (/) http://mandrake.net
>(\)
> > (|) Senior Software Engineer VA Linux Labs (|) http://valinux.com
>(|)
> > (/) Co-Author Enlightenment Window Manager (\) http://enlightenment.org
>(/)
> > (|) Linux.com Advisory Board Member (|) http://linux.com
>(|)
>
>
>
>:wq!
>---------------------------------------------------------------------------
>Robert L. Harris | Microso~1 :
>Senior System Engineer | For when quality, reliability
> at RnD Consulting | and security just aren't
> \_ that important!
>DISCLAIMER:
> These are MY OPINIONS ALONE. I speak for no-one else.
>FYI:
> perl -e 'print
>$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
>
>--
>To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message
>body.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.