3 ms·
+1 - it really irritates me when some script insists that I change into its directory in order to work. Its just lazy script writing.
by _ea1k 3y ago
+1 - it really irritates me when some script insists that I change into its directory in order to work. Its just lazy script writing.
- twic 3y agoIt can also be annoying when a script changes directory itself. If anything the script does is relative to the current directory (interpreting a relative path, creating output files), you now can't have that be relative to your current working directory. Best practice, IMHO, is usually for scripts not to touch the current directory, and to be agnostic to it.