From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <7359f0490504090900720a8e1d@mail.gmail.com> References: <1be4ac7a0db7deea32d263679da4c1e6@telus.net> <7359f0490504090900720a8e1d@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2b427a06c9c9cf00177be5dd56eaf60a@telus.net> Content-Transfer-Encoding: 7bit From: Paul Lalonde Subject: Re: [9fans] Acme button 2 argument expansion: feature or bug? Date: Sat, 9 Apr 2005 09:24:45 -0700 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>, Rob Pike Cc: Topicbox-Message-UUID: 35357a1a-ead0-11e9-9d60-3106f5b1d025 But even selecting the whole string fails: the colon and line number suffix is clobbered. A simple non-solution is to change the dofile argument to the getbytearg call to false, which of course kills the full path expansion of the argument :-(, but at least doesn't kill the suffix. I'd be happy to see the suffix not killed when the selected text was non-null. Paul On 9-Apr-05, at 9:00 AM, Rob Pike wrote: > The thinking in the underlying code, which was co-opted for this > purpose, is that a 'word' ends at punctuation. It's pretty deeply > rooted and would be annoying to change in general, which will > mean hacking it for your particular purpose. > > Instead, I recommend just avoiding expansion in this case and > selecting the whole string you wish to send. > > -rob >