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: pdu...@gmx.com
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.fed...@gmail.com>
To: "Community support for Fedora users" <users@lists.fedoraproject.org>
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 <pdu...@gmx.com> wrote:
This is correct.
 
You add a new path to the old path. Then it duplicates the path

 
===========================================================================
Patrick DUPRÉ | | email: pdu...@gmx.com
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.fed...@gmail.com>
To: "Community support for Fedora users" <users@lists.fedoraproject.org>
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.fed...@gmail.com> wrote:
OK,
 
you are right :-)
 
thank you
 
On Tue, Mar 24, 2020 at 5:29 PM Mike Wright <nob...@nospam.hostisimo.com> 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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to