FP Survivor - Replacement CD on the way.

John Esak john at valar.com
Mon Aug 15 13:11:14 PDT 2005


> > The shell script might read:
> >
> > cd /u/appl/filepro
> > echo "You are now sitting in /u/appl/filepro..."
> >
> > If the script is called "fp", I just do:
> >
> > . fp
> >
> > at the prompt and I'm cd'd to the directory and it tells me I'm
> there. (I
> > work as filepro a lot to be able to do this... by the way...)
>
> The description of how it works is correct, but the statement about the
> period meaning run it in a brand new shell is a direct contradiction.  If
> it did that, you'd never get the environment variables in your further
> examples set in the current one, from the child.
>
> It's more like csh's 'source' than an exec.
>
> mark->

Oops, that is what I meant. I should not have used the word exec.... dumb
mistake. More like run it in the current shell, don't spawn another shell to
do it.

John



More information about the Filepro-list mailing list