$PATH

30 views
Skip to first unread message

Tom De Blende

unread,
Jul 1, 2020, 2:25:14 PM7/1/20
to Ansible Project
Ok, this one I find very confusing :)



aws executable is in /usr/local/bin. That is being added to $PATH via /etc/bashrc

So the first command fails, which would lead me to believe /usr/local/bin is not in $PATH. Which would make sense from what I read when you don't specifically source it. 

If I do source it (command 3), then all is well.

What I don't understand, is why command 2 shows /usr/local/bin as part of $PATH without sourcing it first. And if it's there, why command 1 is not using it.

Anyone care to deconfuse me?

Dick Visser

unread,
Jul 1, 2020, 3:06:51 PM7/1/20
to ansible...@googlegroups.com
You forgot to include the commands?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3fb980b5-e400-42e5-ab56-a2d1a4609385o%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Tom De Blende

unread,
Jul 2, 2020, 1:55:44 AM7/2/20
to ansible...@googlegroups.com
I thought I included a screenshot with the commands and their results? I'll add it again.

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/iOzkLbzUObI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOFQzk0W4fiA%2Bd-ZLdyn%3D5hHOAJGHgizY-%3DP7GNav%2BbSg%40mail.gmail.com.
ansible.png
Reply all
Reply to author
Forward
0 new messages