3 ms·
>So if I want to make this, here was my idea. I will make a flat file like this: >binary_name, path1:path2:path3 Holy path, Batman! Now you have to manage fo
by warrenm 3y ago
>So if I want to make this, here was my idea. I will make a flat file like this:
>binary_name, path1:path2:path3
Holy path, Batman!
Now you have to manage for each and every possible executable ALL the places it might exist?
Let's say you have 100 executables in /bin
You now need (just to reference those 100 commands) a 100-line 'flat file' that looks like:
#######
ls, /bin
ln, /bin
mkdir, /bin
#######
OR you could just do what has been done for 50+ years, and use $PATH which looks like this:
`export PATH = /bin:/usr/bin...`
One easy-to-update line ... or HUNDREDS of hard-to-update lines?
- deleted 3y ago[deleted]