Re:GitHub Copilot
by thangalin on Wednesday June 30, 2021 @01:35AM
(#27685260)
The following line is quite widespread in use, but not as portable as it could be:
For increased portability, respect users' PATH environment variable using:
Using #!/bin/bash could lead to subtle bugs on systems with more than one version of bash installed, or outright breakage on systems where bash isn't installed at /bin/bash. (OpenBSD is known to use /usr/local/bin/bash, for example.)
[ Parent
| on HN ]
That isn't a Copilot bug though, it was typed by a person.