Re: problem setting the PATH variable.

2020-03-25 Thread Joe Zeff
On 03/25/2020 02:10 AM, Angelo Moreschini wrote: thanks for the tips .. I don't have  experience writing bash scripts, (writing them is torture because I'm always wrong ...;-)  ), This might be of some help: http://tldp.org/LDP/abs/html/ ___ users ma

Re: problem setting the PATH variable.

2020-03-25 Thread Angelo Moreschini
thanks for the tips .. I don't have experience writing bash scripts, (writing them is torture because I'm always wrong ...;-) ), .I only copied the check of substrings from an example. You was very kind with your suggestions , and I will bring the improvements you suggested me :-). Regard

Re: problem setting the PATH variable.

2020-03-24 Thread Cameron Simpson
On 25Mar2020 05:31, Angelo Moreschini wrote: I couldn't understand the reason for the double registration of the path : (surly the script was executed twice). Or the same incantation is elsewhere in your setup, thus doing it twice. Eg .profile or something. I write (for the benefit of oth

Re: problem setting the PATH variable.

2020-03-24 Thread Angelo Moreschini
I couldn't understand the reason for the double registration of the path : (surly the script was executed twice). I write (for the benefit of others) the solution I found: (I modified the script with a condition). - newpath="/opt/netbeans/java/maven/bin" if [[ "$PATH" != *"$newpath"* ]]; t

Re: problem setting the PATH variable.

2020-03-24 Thread George N. White III
On Tue, 24 Mar 2020 at 19:23, Cameron Simpson wrote: > On 24Mar2020 17:43, Patrick Dupre wrote: > >This is correct. > >You add a new path to the old path. Then it duplicates the path > > No, his script is correct (to do it for all users). > > I expect he is running the PATH= command twice - onc

Re: problem setting the PATH variable.

2020-03-24 Thread Cameron Simpson
On 24Mar2020 17:43, Patrick Dupre wrote: This is correct. You add a new path to the old path. Then it duplicates the path No, his script is correct (to do it for all users). I expect he is running the PATH= command twice - once from /etc/profile.d, and maybe once in his personal .profile or

Re: problem setting the PATH variable.

2020-03-24 Thread George N. White III
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" >> *To:* "Community support for Fedora users

Re: problem setting the PATH variable.

2020-03-24 Thread Patrick Dupre
or Fedora users" 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

Re: problem setting the PATH variable.

2020-03-24 Thread Angelo Moreschini
NCE > Tel: +33 (0)380395988 > === > > > *Sent:* Tuesday, March 24, 2020 at 5:37 PM > *From:* "Angelo Moreschini" > *To:* "Community support for Fedora users" > *Subject:* Re: problem setting the PATH variable. > Still thank you, ... it works now. > > B

Re: problem setting the PATH variable.

2020-03-24 Thread Patrick Dupre
DIJON Cedex FRANCE Tel: +33 (0)380395988 ===     Sent: Tuesday, March 24, 2020 at 5:37 PM From: "Angelo Moreschini" To: "Community support for Fedora users" Subject: Re: problem setting the PATH variable

Re: problem setting the PATH variable.

2020-03-24 Thread Angelo Moreschini
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 $PA

Re: problem setting the PATH variable.

2020-03-24 Thread Angelo Moreschini
OK, you are right :-) thank you On Tue, Mar 24, 2020 at 5:29 PM Mike Wright 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

Re: problem setting the PATH variable.

2020-03-24 Thread Mike Wright
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

problem setting the PATH variable.

2020-03-24 Thread Angelo Moreschini
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 s