Quoth Frank D. Engel, Jr. <[email protected]>:
>
> However, how do you wind up in a situation in which you can't change /bin?
>
> Worst case couldn't you just:
>
> bind /bin /oldbin
>
> bind /newbin /bin
>
> ?
>
pretty sure you responded to an llm, and the llm lied to you; you
should always be able to change /bin; $path is of very limited
utility.
that said, there are things you can do with it that you can't do
with binding to /bin:
1) you can replace directories in /bin/ with binaries; we ship
a /bin/git/compat script that uses this to put /n/gitcompat/git
(a file) in front of /bin/git (a dir).
2) it lets you have binaries relative to your cwd; the common
example is '.', but you can do 'path=(/bin . bin) to have
utility scripts in `{pwd}^/bin/project-specific-tools. I've
never done this, or wanted to do this, but the popularity of
direnv in some circles imply to me some people want this.
These are all hypothetical; I have never personally changed $path
from the 9front default.
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tb55aa78014f11ae0-Mff273f1fa3a990fe0ebd66d4
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription