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



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