This is correct.
 
You add a new path to the old path. Then it duplicates the path

 
===========================================================================
Patrick DUPRÉ | | email: pdupre@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.fedora@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.fedora@gmail.com> wrote:
OK,
 
you are right :-)
 
thank you
 
On Tue, Mar 24, 2020 at 5:29 PM Mike Wright <nobody@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-leave@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-leave@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