exec.Command("ls") calls LookPath to find an "ls" executable to run.
If users are on Windows, or if they are on Unix with "." in their $PATH ahead of /bin, it will run ./ls when that exists.
That's almost never what you really want - see #38736 and related issues.
If we adopt #42420, perhaps we should also make exec.Command default to using LookPathAbs instead of LookPath (unless the command is explicitly "./ls" (.\ls
on Windows)).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4