Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Allow .command files to determine working directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Allow .command files to determine working directory
Authored by: las_vegas on Dec 26, '04 03:19:36PM
A simpler and easier to read method of entering this command is:

cd $(dirname "$0")

This simply uses a different technique of executing a command within the script. I find the left quote character difficult to see and understand what the script is doing.

[ Reply to This | # ]