9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] bug in libcomplete?
@ 2004-02-14 19:01 Rob 'Commander' Pike
  0 siblings, 0 replies; 8+ messages in thread
From: Rob 'Commander' Pike @ 2004-02-14 19:01 UTC (permalink / raw)
  To: 9fans

that's embarrassing. let's close it.

-rob

libcomplete%% diff complete.c /sys/src/libcomplete
61,62c61
< 	if(n <= 0){
< 		close(fd);
---
> 	if(n <= 0)
64d62
< 	}
139d136
<   	close(fd);



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [9fans] bug in libcomplete?
@ 2004-02-14 15:15 andrey mirtchovski
  2004-02-14 16:35 ` Rob Pike
  0 siblings, 1 reply; 8+ messages in thread
From: andrey mirtchovski @ 2004-02-14 15:15 UTC (permalink / raw)
  To: 9fans

libcomplete depends on 'cd' to find our which directory the user is
in.  this breaks its behaviour with respect to programs which
implicitly chdir when started, one example is the 'window' command --
cd /tmp and run window, hit the complete key and you'll get the
contents of your $home.  The following example is a freshly created
window in the /tmp directory:



	home% pwd
	/tmp
	[bin/ lib/ tmp/]
	home% cd `{pwd}
	[58 files]
	home%

pwd shows i'm in /tmp, completion thinks i'm in $home, then the same
thing after "cd `{pwd}"

andrey



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

end of thread, other threads:[~2004-02-14 21:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-14 19:01 [9fans] bug in libcomplete? Rob 'Commander' Pike
  -- strict thread matches above, loose matches on Subject: below --
2004-02-14 15:15 andrey mirtchovski
2004-02-14 16:35 ` Rob Pike
2004-02-14 16:49   ` David Presotto
2004-02-14 18:18     ` andrey mirtchovski
2004-02-14 17:56       ` andrey mirtchovski
2004-02-14 19:09       ` Rob Pike
2004-02-14 21:57         ` boyd, rounin

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