9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Few silly ones..
@ 2002-12-24  4:24 a
  0 siblings, 0 replies; 4+ messages in thread
From: a @ 2002-12-24  4:24 UTC (permalink / raw)
  To: 9fans

in addition to the solution noted by russ and scott of
	gnu/bin one.c
you can do the bind to make the contents of /386/bin/gnu show
up in /bin, and thus found by rc's default path:
	bind -a /386/bin/gnu /bin
i'm not sure what else is in /bin/gnu, so this may or may no
actually be desirable. note that this is the same way the
default /bin is constructed from /386/bin and /rc/bin (the
order of which i always reverse to allow rc scripts to be
wrappers for binaries of the same name).

i'd avoid scott's suggestion of changing your $path.
ア


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Few silly ones..
  2002-12-24  3:49 ` Ish Rattan
  2002-12-24  4:16   ` Scott Schwartz
@ 2002-12-24  4:16   ` Russ Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Russ Cox @ 2002-12-24  4:16 UTC (permalink / raw)
  To: 9fans

> but is not found when gcc is invoked
>
> 	gcc one.c

it shouldn't be found.  it's not in /bin.

> but
> 	/bin/gnu/gcc one.c

you can say

	gnu/gcc one.c

as a shorthand.

> Also is there a way to change owner/group recursively
> in a subtree?

	chgrp -u foo `{du -a tree | awk '{print $2}'}
	chgrp foo `{du -a tree | awk '{print $2}'}

russ



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Few silly ones..
  2002-12-24  3:49 ` Ish Rattan
@ 2002-12-24  4:16   ` Scott Schwartz
  2002-12-24  4:16   ` Russ Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Scott Schwartz @ 2002-12-24  4:16 UTC (permalink / raw)
  To: 9fans

> 	/386/bin/gnu/gcc
> but is not found when gcc is invoked

rc has nicer path searching rules than sh: it searches for relative paths,
so you can use directories as prefixes to package binaries in groups.
Thus, you can say "gnu/gcc" to run the program.  Or you can add /bin/gnu
to your $path. :)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] Few silly ones..
@ 2002-12-24  3:49 ` Ish Rattan
  2002-12-24  4:16   ` Scott Schwartz
  2002-12-24  4:16   ` Russ Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Ish Rattan @ 2002-12-24  3:49 UTC (permalink / raw)
  To: 9fans


I just installed gcc from gnubin.tgz. The binary is

	/386/bin/gnu/gcc

but is not found when gcc is invoked

	gcc one.c

but
	/bin/gnu/gcc one.c

works. Is there a solution?

Also is there a way to change owner/group recursively
in a subtree?

-ishwar



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-24  4:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-24  4:24 [9fans] Few silly ones a
     [not found] <ishwar@pali.cps.cmich.edu>
2002-12-24  3:49 ` Ish Rattan
2002-12-24  4:16   ` Scott Schwartz
2002-12-24  4:16   ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).