On Thu, Jul 24, 2025 at 4:56 PM Frank D. Engel, Jr. <[email protected]> wrote:
> There is no concept of "path" in 9front/Plan9 - not needed due to union
> mounts.
Perhaps sadly, that's not true. `$path` is still a thing in `rc`; see
`/rc/lib/rcmain` or `echo $path` at the `rc` prompt. Ori is correct
that on 9front it's `(/bin .)`; on 9legacy it's worse, being `(.
/bin)` (that is, current dir first).
> You just mount additional directories on top of /bin to "merge" them at
> one location.
This is true, which is why $path defaults to the super minimal
definition from rcmain by default on 9front/plan9. But some folks
(myself included...) don't like having `.` in there, so setting it
manually isn't a bad thing. Note also that invoking rc as `rc -p` will
result in $path just being `/bin`, despite `-p` being documented as sa
no-op in the man page.
- Dan C.
> On 7/23/25 18:12, [email protected] wrote:
> > on 9front, I think the default path is (/bin .), but I
> > think it's worth being a bit more robust. Done.
> >
> > Quoth Kyohei Kadota via 9fans <[email protected]>:
> >> Hi, David.
> >>
> >> I found, on /sys/src/cmd/git, mk clean exits with an usage error. For
> >> example:
> >>
> >> % cd /sys/src/cmd/git
> >> % mk clean
> >> rm -f *.[568ijqv] *.a[568ijqv] y.tab.? lex.yy.c y.debug y.output
> >> [568ijqv].??* conf get fs log query repack save send serve walk
> >> $CLEANFILES
> >> usage: add [-r :remove] file ...
> >> mk: rm -f *.[568ijqv] ... : exit status=rc 3855: usage 3855: usage
> >>
> >> There is /sys/src/cmd/git/rm and it's marked as executable so mk may
> >> refer to that.
> >>
> >> Thus I would you like to merge the patch below. Is it possible to merge?
> >>
> >> diff --git a/sys/src/cmd/git/mkfile b/sys/src/cmd/git/mkfile
> >> --- a/sys/src/cmd/git/mkfile
> >> +++ b/sys/src/cmd/git/mkfile
> >> @@ -1,4 +1,5 @@
> >> </$objtype/mkfile
> >> +path=/bin
> >>
> >> BIN=/$objtype/bin/git
> >> TARG=\
> > ------------------------------------------
> > 9fans: 9fans
> > Permalink:
> > https://9fans.topicbox.com/groups/9fans/Tb55aa78014f11ae0-M5a314881b64d88931f0b52fa
> > Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tb55aa78014f11ae0-Md20a2a5cf8c56db0eb32f119
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription