3 ms·
The outer quotes aren't required: APP_ROOT=`dirname "$0"` (See http://www.tldp.org/LDP/abs/html/varassignment.html#EX16 http://www.tldp.org/LDP/abs/html/var
by damncabbage 13y ago
The outer quotes aren't required:
APP_ROOT=`dirname "$0"`
(See http://www.tldp.org/LDP/abs/html/varassignment.html#EX16 http://www.tldp.org/LDP/abs/html/varassignment.html#EX16)
Also, even if ^J or ^M were present in a parent directory's name, the command above would still work. Whitespace-like characters take some getting used to with Bash.