On Sun, Aug 23, 2020 at 12:07 AM ToddAndMargo via users
<[email protected]> 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.
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]

Reply via email to