LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-04-2021, 03:50 AM   #16
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Original Poster
Rep: Reputation: 204Reputation: 204Reputation: 204

Quote:
Originally Posted by pan64 View Post
what I don't understand:
you do not need to put it into .bash_profile, you can do the following:
Code:
###### original
# if [ ! -d $LPATH ]; then
# 	mkdir -p $LPATH
# 	echo 'export PATH=\$PATH:$LPATH >> $HOME/.bash_profile'
# 	source $HOME/.bash_profile
# fi

##### new
mkdir -p $LPATH
export PATH=$PATH:$LPATH
Obviously you can put it into .bash_profile if you wish, but not really required for this script.
Your are absolutely right, bash_profile isn't really required for the script.
 
Old 03-04-2021, 04:25 AM   #17
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
How often do you plan to install xmonad? You are creating script you will possibly using once at all. Then you will be updating xmonad. I am not specialist but I understand that git allows to provide easy updates from source tree. This is why your script does not work. It is not a tool but exercise from bash scripting. Just post in Programming subforum. Someone possibly will explain to you why it is not correct bash script. Possibly your aim is to share your script among xmonad users? Good luck.
 
Old 03-04-2021, 06:45 AM   #18
blancamolinos
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 109

Rep: Reputation: 70
It is possible that at the beginning of the script .bash_profile there is a check to verify if the shell is interactive as it appears in this link

https://stackoverflow.com/questions/...pt-not-working
 
Old 03-05-2021, 12:10 AM   #19
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Original Poster
Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by igadoter View Post
How often do you plan to install xmonad? You are creating script you will possibly using once at all. Then you will be updating xmonad. I am not specialist but I understand that git allows to provide easy updates from source tree. This is why your script does not work. It is not a tool but exercise from bash scripting. Just post in Programming subforum. Someone possibly will explain to you why it is not correct bash script. Possibly your aim is to share your script among xmonad users? Good luck.
Basically it was just a request from a number of Xmonad users and a good moment to improve my scripting skills.

By the way, the script works, but I expected a bit more. But that is all right.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP script does not work properly cucolin@ Linux - Server 14 08-03-2012 01:40 PM
Java does not work, I DLed Java and it still does not work M$ISBS Linux - Newbie 0 04-15-2007 08:20 PM
pci-e support: nvidia 6600gt not properly recognized? nvtv does not work... spad Linux - Hardware 1 09-26-2005 07:11 AM
firefox / kde: "open with"-menu does not work properly pit1516 Linux - Software 2 07-21-2005 04:01 PM
NVIDIA does not work properly in 10.1 Cornholio Slackware 7 03-28-2005 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration