dCore Import Debian Packages to Mountable SCE extensions > dCore X86
grep
Rich:
Hi nitram
--- Quote ---Not sure where /$HOME/.local/bin fits into this, will figure out with a bit of experimentation.
--- End quote ---
The $HOME variable expands to a path to the home directory of the current user. The default user is tc , so it expands to:
--- Code: ---tc@box:~$ echo $HOME
/home/tc
tc@box:~$
--- End code ---
If you created a user nitram and logged in as nitram, it would look like this:
--- Code: ---nitram@box:~$ echo $HOME
/home/nitram
nitram@box:~$
--- End code ---
/$HOME/.local/bin shows up at the beginning of $PATH :
--- Code: ---tc@box:~$ echo $PATH
/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/sda3/tce/ondemand
tc@box:~$
--- End code ---
/$HOME/.local/bin is a good place for scripts and executables that should be unique to a particular user.
Jason W:
As for if the grep package from Debian/Ubuntu is installed as a part of any SCE, then that is the grep that is used and that helps sce-import performance tremendously. Below is my $PATH on my dCore-trusty:
/home/jason/Applications/.bin:/usr/bin:/home/jason/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bb:/etc/sysconfig/tcedir/ondemand
Notice how /bb is near the last on the list, busybox apps are only used when their full versions are not installed.
Rich:
Hi Jason W
Your path $PATH has /usr/bin listed twice.
Jason W:
Thanks. That must be due to an application tacking that on to the beginning of PATH, as with the /home/jason/Applications, as neither of those is at the beginning of PATH in either ~/.profile or /etc/profile. If I remember enlightenment takes the directory used by "--prefix=" when compiling and adds it to the beginning of the PATH.
nitram:
Thanks all, will just add detailed notes to wiki so users can check for themselves which grep they're using.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version