CWD (current working directory) is incorrect when a bash scripts is double clicked. How can we fix this?
When we get started with bash scripting, one of the most frequent problems we come across is the incorrect CWD (current working directory). This is problematic when we expect to…