Mingtao's Java World
Thursday, 2 June 2016
Execute script under current folder without ./
Say we have a bash script: a.sh
Normally we run it by typing:
./a.sh
If we just type
a.sh
we get command not found.
The solution is add current path to the PATH variable
PATH=$PATH:.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment