Hi,
I read something like "\mkdir ${RESULT_DIR}". Just curious about why "\" is added before the command? Thanks for help!
lehe
0
Light Poster
Recommended Answers
Jump to PostWithout the backslash, the shell checks to see if there is an alias for the command. If so, it uses it.
With the backslash, the shell skips this check and runs the first version of the command that it finds in $PATH.
N
All 3 Replies
Comatose
290
Taboo Programmer
Team Colleague
lehe
0
Light Poster
Fest3er
39
Posting Whiz in Training
Comatose
commented:
Fantastic Contribution
+9
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.