[juneau-lug] Re: What does . mean?

  • From: "James Zuelow" <jamesz@xxxxxxxxxxxxxxxx>
  • To: <juneau-lug@xxxxxxxxxxxxx>
  • Date: Thu, 27 Mar 2003 13:31:52 -0800



> -----Original Message-----
> From: juneau-lug-bounce@xxxxxxxxxxxxx 

> 
> What does a single dot, sitting all by itself on the line do/indicate?
> 

It "sources" a file - it reads it verbatim, and either includes it in a
script, or if you do it manually, pretends you typed it on the keyboard.

You can try this by writing a simple script:

#!/bin/bash
echo "hello"

Save it as test.sh

Then try `. test.sh`

The script will execute, even though you didn't set execute permissions
on it.

Cheers,

James


------------------------------------
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: