On 2020-08-23 02:19, Tom H wrote:
On Sun, Aug 23, 2020 at 12:07 AM ToddAndMargo via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
On 2020-08-22 05:25, Tom H wrote:
5) Why do you use "/usr/bin/nmcli" 6 times and "nmcli" twice?
There's no need for absolute paths.
Missed that. Now they are all absolute paths. Good
catch. Thank you!
I use absolute paths when I will sometimes be operating
outside the shell. It is a habit of mine to not trust
$PATH from the shell. I do it all the time as a
"just in case".
Did you turn all the other commands into absolute paths? (I hope not.)
If you're worried about not finding a command, set "PATH=..." after the shebang.
I could use that with /usr/sbin. Sweet. Thank you!
Exact path helps where things have the same names too:
/etc/alternatives/ifup
/usr/sbin/ifup
/usr/share/bash-completion/completions/ifup
/var/lib/alternatives/ifup
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx