10 Sep
2006
10 Sep
'06
02:13
On 9/9/06 7:08 PM, "Carlos E. R." <robin.listas@telefonica.net> wrote:
start() { echo -n "Starting up sensors" unset ${!MODULE_*} test -r "$CONFIG" && . "$CONFIG"
Now, what does that "test" line?
`-r FILE' True if FILE exists and read permission is granted.
But I'm unsure of what does the part to the right of &&. I think it runs the config file, setting up variables, if it exists.
In English, "test for the file to exist and be readable, and if it is, then read in the variable assignments contained therein."