From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5b31fe1f39da38505a559c9a6b2a0291@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] bug in libcomplete? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-kkrvzfottpwbafikcoopigiqfl" Date: Sat, 14 Feb 2004 11:49:39 -0500 Topicbox-Message-UUID: e3f1d296-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-kkrvzfottpwbafikcoopigiqfl Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit done and sources updated --upas-kkrvzfottpwbafikcoopigiqfl Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Sat Feb 14 11:36:23 EST 2004 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Sat Feb 14 11:36:20 EST 2004 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 016D71A102; Sat, 14 Feb 2004 11:36:17 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id AA5AF19BA9; Sat, 14 Feb 2004 11:36:13 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id B7F4C19C4B; Sat, 14 Feb 2004 11:35:37 -0500 (EST) Received: from mailer01.geekmail.cc (dictum-ext.geekmail.cc [204.239.179.245]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 53AF119E60 for <9fans@cse.psu.edu>; Sat, 14 Feb 2004 11:35:36 -0500 (EST) X-Envelope-To: <9fans@cse.psu.edu> Received: from mightycheese.com (adsl-67-122-70-55.dsl.pltn13.pacbell.net [67.122.70.55]) (authenticated bits=0) by mailer01.geekmail.cc (8.12.10/8.12.9) with ESMTP id i1EGZX4O018688 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NOT) for <9fans@cse.psu.edu>; Sat, 14 Feb 2004 08:35:34 -0800 Subject: Re: [9fans] bug in libcomplete? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v553) From: Rob Pike To: 9fans@cse.psu.edu Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.553) Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Sat, 14 Feb 2004 08:35:48 -0800 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on psuvax1.cse.psu.edu X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Level: no, the bug is rio. it doesn't set /dev/wdir in this case. add if(dir) w->dir = estrdup(dir) after the call to wsetname() in new() in /sys/src/cmd/rio/rio.c -rob On Saturday, February 14, 2004, at 07:15 AM, andrey mirtchovski wrote: > 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 --upas-kkrvzfottpwbafikcoopigiqfl--