LinuxQuestions.org
Help answer threads with 0 replies.
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 11-11-2014, 06:18 PM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Trying to use Plan 9's binaries instead of the traditional ones


Sorry for the horrible title, I couldn't think of something better. I've downloaded and compiled 9base under ~/.bin/plan9

Code:
$ ls ~/.bin/plan9/
bin/  etc/  lib/  share/  yacc/
I have it in my path set on .bashrc with:

Code:
PATH=~/.bin:~/.bin/plan9/bin:$PATH
export PATH
Code:
echo $PATH
/home/pedro/.bin:/home/pedro/.bin/plan9/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin
However, it doesn't run the Plan 9's binaries all the time, if I type something like "ls --help" (unavaliable to the Plan 9 one) it invokes the /bin/ls (normal GNU one) instead. I got what happened but how can I make it run the Plan 9's binaries every single time?
 
Old 11-11-2014, 06:48 PM   #2
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Easy (and safe?) route: rename /bin/ls to something like ls.orig and create a symbolic link (symlink) to plan9 one. You may have /usr/bin/ls pointing to /bin/ls...
 
Old 11-11-2014, 08:15 PM   #3
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Well, the reason I installed them under ~/.bin was to not mess up with the other system binaries :-(
 
Old 11-11-2014, 09:00 PM   #4
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
"alias ls=/path/to" ?
 
Old 11-11-2014, 09:02 PM   #5
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Hmmm, that could work. I just don't get why it is not run every single time if it comes first in the $PATH.
 
Old 11-12-2014, 02:59 AM   #6
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
in /etc/profile.d/coreutils-dircolors.sh You find

Code:
alias ls='/bin/ls $LS_OPTIONS'
So for that command it is already an alias with full PATH

Just run alias, and You see what may interfere with Your setup:

Code:
alias
alias d='dir'
alias dir='/bin/ls $LS_OPTIONS --format=vertical'
alias ls='/bin/ls $LS_OPTIONS'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias v='vdir'
alias vdir='/bin/ls $LS_OPTIONS --format=long'
 
1 members found this post helpful.
Old 11-12-2014, 06:46 AM   #7
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Ohh, I think it is that. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: How being online changes how we think about the traditional research paper LXer Syndicated Linux News 0 09-04-2014 08:12 AM
XML vs Traditional Databases (DBMS) rm_-rf_windows Programming 9 10-04-2012 05:24 PM
LXer: Traditional DNS Howto LXer Syndicated Linux News 0 04-09-2006 10:21 AM
Chinese (Traditional) filename in both Linux and Windows XP haven77 Linux - General 0 02-21-2005 10:47 AM
Where is traditional unix 'mail' ? John Velman Slackware 2 01-24-2004 12:39 PM

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

All times are GMT -5. The time now is 09:12 PM.

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