9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] File server for NT
@ 2003-05-16  3:53 Andrew Simmons
  2003-05-16  5:00 ` William K. Josephson
  0 siblings, 1 reply; 24+ messages in thread
From: Andrew Simmons @ 2003-05-16  3:53 UTC (permalink / raw)
  To: 9fans

> The shell's path is (. /bin) right?

Sorry to be obtuse, but are you saying that 9fs is attempting to run pwd or
ls on the remote system running u9fs?

Re the path name, I have to confess I only looked at it after I'd
re-formatted it, possibly erroneously, but I'm confused about the references
to dot. From walk(5): The name "." (dot), meaning the current directory, is
not used in the protocol.




^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: [9fans] File server for NT
@ 2003-05-16  9:22 Keith Nash
  0 siblings, 0 replies; 24+ messages in thread
From: Keith Nash @ 2003-05-16  9:22 UTC (permalink / raw)
  To: 9fans

> it never was on lunix, but on plan 9 your path had to be:
>
>    .
>    /bin
>
> to preserve some sort of semantic sanity, given 'everyone is a mortal' on
> plan 9.

Putting "." at the head of the path means that a system tool will be overridden by anything in the current directory that happens to have the same name.  This practice is not advised in Lunix; I have often wondered why it was adopted in Plan 9.

Telling Plan 9 to execute dir/tool causes it to look for $path/dir/tool, not ./dir/tool - a consistent and elegant choice of design.

I'm not sure whether by 'semantic sanity' you mean preserving an aspect of Lunix' inconsistency in order to provide users with a familiar environment.  This isn't the choice that Plan 9's designers usually made.

Does anything break if path is set to just "/bin", or to "/bin ."?  For example, in
cd foo
mk
developers are free to place their own substitutes for system commands along with their source files in directory foo.  Does the official Plan 9 software ever do this?  Even if it doesn't, 3rd-party software might, which suggests that we are stuck with using the ". /bin" default for ever.



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

end of thread, other threads:[~2003-05-19  9:46 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <andrew.simmons@monitorbm.co.nz>
2003-05-16  0:28 ` [9fans] File server for NT Andrew Simmons
2003-05-16  0:28   ` Scott Schwartz
2003-05-16  1:04   ` William Josephson
2003-05-16  2:06     ` Dan Cross
2003-05-16  6:25       ` boyd, rounin
2003-05-16 13:46         ` rog
2003-05-16 13:20           ` Sam
2003-05-16 14:26       ` ron minnich
2003-05-16 15:23         ` andrey mirtchovski
2003-05-16 16:02           ` Dan Cross
2003-05-19  9:46             ` boyd, rounin
2003-05-16 16:08           ` Russ Cox
2003-05-16 16:17           ` ron minnich
2003-05-16 22:07             ` Geoff Collyer
2003-05-16 23:32               ` northern snowfall
2003-05-16 22:37                 ` Geoff Collyer
2003-05-16  3:53 Andrew Simmons
2003-05-16  5:00 ` William K. Josephson
2003-05-16  6:03   ` William K. Josephson
2003-05-16 11:38   ` Andrew Simmons
2003-05-16 12:55     ` Russ Cox
2003-05-19  9:45       ` Andrew Simmons
2003-05-16 13:43     ` rog
2003-05-16  9:22 Keith Nash

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).