2018-05-09 12:42 GMT+02:00 Pierre Labastie <pierre.labas...@neuf.fr>: > > > Le 8 mai 2018 20:13, Rafał -rsm- Marek <r...@lisper.pl> a écrit : > > hi michele, > > On 07/05/18 23:30, Michele Bucca wrote: >> Rename 'ln.s' into 'ln' and put it inside a PATH directory inside your >> home, don't overwrithe /bin/ln ! > > yes (and it's annoying), but! when you run bash again, it will overwrite > :) i assume there is some cache i don't know. > > POC: > > $ env | grep PATH > PATH=/home/rsm/bin:/usr/local/bin:/usr/bin:/bin > $ cp /bin/ln ~/bin > > $ which ln > /bin/ln > > Issue "rehash", so that the current $PATH is used. Then "which ln" would > return "/home/rsm/bin/ln" > > $ bash > $ which ln > /home/rsm/bin/ln > >
Thanks for the tips, however what I meant for "don't overwrithe /bin/ln !" was: do not copy the script in /bin/ln, do not overwrite the actual binary or you will break your system. Thanks anyway. :) Now I have another issue that is about cross-compiling. I've posted it in clfs-support, if someone is subscibed to that mailing list I would be glad if someone could help me, This would allow me to do something really cool. I'll give more details when I succed ;) In the meantime Thanks to all of you :) -- Michele > -- > http://lists.linuxfromscratch.org/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page > > Do not top post on this list. > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > http://en.wikipedia.org/wiki/Posting_style > -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style