9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] pwd(1)
@ 2003-11-01 14:09 lucio
  2003-11-01 14:34 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: lucio @ 2003-11-01 14:09 UTC (permalink / raw)
  To: 9fans

Does it really return the value of the pathname which it failed to
retrieve when it fails to retrieve it?

	if(getwd(pathname, sizeof(pathname)) == 0) {
		print("pwd: %r\n");
		exits(pathname);
	}

I hope I'm looking at old code.  Did somebody forget to put quotes
around the exits() argument?

++L



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

end of thread, other threads:[~2003-11-01 15:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-01 14:09 [9fans] pwd(1) lucio
2003-11-01 14:34 ` Russ Cox
2003-11-01 14:57   ` Lucio De Re
2003-11-01 15:04     ` 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).