Beyond what genius_at_work said about your question, I'll add that you can shorten that check to:

echo 4 -a $exists($mircdir/bot/gobal.ini)

As long as your filename/path is within an identifier (something starting with a $ sign and surrounded by parentheses), you don't need to worry about spaces, so quotes aren't necessary. Stuff like $read or $readini are identifiers and wouldn't need to have the quotes, for example.

However, if you use it with something that doesn't have an identifier (such as /write or /writeini), that's when you need to include the quotes. It's also good practice to have a \ or / between $mircdir or $scriptdir and the filename or folder name that follows. It will work without that right now, but that may change in a later version.


Invision Support
#Invision on irc.irchighway.net