Vào 22:06, Th 2, 28 thg 7, 2025 thales.of.miletus < [email protected]> đã viết:
> That is a good question. In many cases, it is true that you > can rebind /bin using commands such as: > > bind /bin /oldbin > bind /newbin /bin > > This works when the namespace is fully under the user’s > control. Plan 9’s namespace model supports it well. > > However, this assumes a standalone setup. Plan 9 was not > designed as a local UNIX replacement. It was designed as a > distributed operating system. In that context, things work > differently. > > On a terminal booted from a file server, /bin may be > mounted read-only from a remote CPU server. In that case, the > user cannot rebind it. Even if permitted, doing so may > conflict with shared system policies. > > There are also cases where tools exist in user-specific > locations, or arrive later via mounts that are not part of > the initial boot namespace. > > In such cases, changing $path is the correct and intended > solution. It affects only the current shell or script. It > preserves namespace integrity and avoids system-wide impact. > That's the same for binding. > At the core is a design question. As the administrator, do > you want to use Plan 9 *as Plan 9*, or do you want to use it > *as a UNIX*? > > Plan 9 encourages private namespaces, per-process resources, > and distributed services. Its shell tools, including $path, > support that model. > $path is an ad hoc shell feature to support executing binaries in the current working directory > If you treat Plan 9 as a traditional single-machine system, > you may overlook features designed for a distributed world. > I guess this email is written by AI? It says incorrect things above (``avoids system-wide impact'' which is not true because binding are local) > > On Sun, Jul 27, 2025 at 6:20 AM Frank D. Engel, Jr. <[email protected]> > wrote: > >> Interesting... always learning something new. >> >> 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 >> >> ? >> >> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions > <https://9fans.topicbox.com/groups/9fans> + participants > <https://9fans.topicbox.com/groups/9fans/members> + delivery options > <https://9fans.topicbox.com/groups/9fans/subscription> Permalink > <https://9fans.topicbox.com/groups/9fans/Tb55aa78014f11ae0-M9317b7986c78f3ab36458742> > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tb55aa78014f11ae0-M78efb585d2ed883c495117f5 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
