Re: problem setting the PATH variable.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Then,
you can open a new shell
and/or set up you .bashrc
by the xorrect PATH,
and start a new shell (or login back).
 
Test you .bashrc before logout.
 
===========================================================================
Patrick DUPRÉ | | email: pdupre@xxxxxxx
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988
===========================================================================
 
 
Sent: Tuesday, March 24, 2020 at 6:41 PM
From: "Angelo Moreschini" <mrangelo.fedora@xxxxxxxxx>
To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: problem setting the PATH variable.
so  ...
what is the correct content of the script
in order to have only one instance of the new PATH to add ??
 
On Tue, Mar 24, 2020 at 6:45 PM Patrick Dupre <pdupre@xxxxxxx> wrote:
This is correct.
 
You add a new path to the old path. Then it duplicates the path

 
===========================================================================
Patrick DUPRÉ | | email: pdupre@xxxxxxx
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988
===========================================================================
 
 
Sent: Tuesday, March 24, 2020 at 5:37 PM
From: "Angelo Moreschini" <mrangelo.fedora@xxxxxxxxx>
To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: problem setting the PATH variable.
Still thank you, ... it works now.
 
But I have still another (little) problem:
 
To change the path, I wrote in the directory /etc/profile.d, a shell script with this content:
---
PATH=$PATH:/opt/netbeans/java/maven/bin
export PATH
-----
 
I don't understand because the output of the command echo $PATH is now;
--------
/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/opt/netbeans/java/maven/bin:/opt/netbeans/java/maven/bin
-------
the PATH of "maven" is added two times...
 
what is the reason ???
 
 
 
On Tue, Mar 24, 2020 at 6:12 PM Angelo Moreschini <mrangelo.fedora@xxxxxxxxx> wrote:
OK,
 
you are right :-)
 
thank you
 
On Tue, Mar 24, 2020 at 5:29 PM Mike Wright <nobody@xxxxxxxxxxxxxxxxxxxx> wrote:
On 3/24/20 8:11 AM, Angelo Moreschini wrote:
> hi
> I have a strange problem ...
>
> On my computer "maven" (an IDE for developent in java language) is
> installed in the directory: "/ opt / netbeans / java / maven / bin / mvn".
>
> And I can run it (maven)  by giving its full path from the command line.
>
> I wanted to modify the PATH variable to use the simple name of the program
> "mvn".
>
> I did it and actually I get this output for the command :
> -------
> angelo_dev @ pluto:  echo $ PATH:
> / Usr / share / Modules / bin: / usr / local / bin: / usr / local / sbin: /
> usr / bin: / usr / sbin: / opt / netbeans / java / maven / bin / mvn.

Salve Angelo,

There is an error in the maven portion of the path:  it ends in mvn.  It
is supposed to end in bin.

Mike Wright
_______________________________________________
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
_______________________________________________ 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
_______________________________________________
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
_______________________________________________ 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
_______________________________________________
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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux