FP Survivor - Replacement CD on the way.

Fairlight fairlite at fairlite.com
Mon Aug 15 12:01:17 PDT 2005


> As for the . thing. Essentially, the . means to "exec" the script I'm
> calling. That means run it in a brand new shell, don't run it as a subshell
> and return to the calling shell. So I do things like this all the time.
> 
> 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->


More information about the Filepro-list mailing list