* Re: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n [not found] ` <Tc0a88d0154b316666a@mailsweeper01.cambridgesiliconradio.co m> @ 2001-07-12 11:06 ` Michael Schaap 2001-07-12 11:57 ` Andrej Borsenkow 0 siblings, 1 reply; 6+ messages in thread From: Michael Schaap @ 2001-07-12 11:06 UTC (permalink / raw) To: Zsh hackers list At 11:21 12-7-2001, Peter Stephenson wrote: >Andrej Borsenkow wrote: > > The problem is, of course, =cmd won't be the same as /path/to/cmd.exe. But > > it the same with my patch as well. > >That might be worth a special case, since the assumption is usually that >=cmd returns a file. But it does, in this case! As far as Cygwin is concerned, both "/bin/ls" and "/bin/ls.exe" are files - the same file. You can do whatever you want with either of the names. The only difference is that a readdir on /bin only returns "ls.exe" and not "ls". - Michael ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n 2001-07-12 11:06 ` ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n Michael Schaap @ 2001-07-12 11:57 ` Andrej Borsenkow 2001-07-12 14:04 ` Andrej Borsenkow 0 siblings, 1 reply; 6+ messages in thread From: Andrej Borsenkow @ 2001-07-12 11:57 UTC (permalink / raw) To: Michael Schaap; +Cc: Zsh hackers list On Thu, 12 Jul 2001, Michael Schaap wrote: > At 11:21 12-7-2001, Peter Stephenson wrote: > >Andrej Borsenkow wrote: > > > The problem is, of course, =cmd won't be the same as /path/to/cmd.exe. But > > > it the same with my patch as well. > > > >That might be worth a special case, since the assumption is usually that > >=cmd returns a file. > > But it does, in this case! > No. cp =cmd . copies cmd *not* cmd.exe. And this does make difference. > As far as Cygwin is concerned, both "/bin/ls" and "/bin/ls.exe" are files - > the same file. You can do whatever you want with either of the names. The > only difference is that a readdir on /bin only returns "ls.exe" and not "ls". > Only w.r.t. to stat() and only if /bin/ls does not exist. -andrej ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n 2001-07-12 11:57 ` Andrej Borsenkow @ 2001-07-12 14:04 ` Andrej Borsenkow 0 siblings, 0 replies; 6+ messages in thread From: Andrej Borsenkow @ 2001-07-12 14:04 UTC (permalink / raw) To: Michael Schaap; +Cc: Zsh hackers list > > On Thu, 12 Jul 2001, Michael Schaap wrote: > > > At 11:21 12-7-2001, Peter Stephenson wrote: > > >Andrej Borsenkow wrote: > > > > The problem is, of course, =cmd won't be the same as > /path/to/cmd.exe. But > > > > it the same with my patch as well. > > > > > >That might be worth a special case, since the assumption is > usually that > > >=cmd returns a file. > > > > But it does, in this case! > > > > No. > > cp =cmd . > > copies cmd *not* cmd.exe. And this does make difference. > Sorry, now when I could finally test it it is O.K. mv results in error message (something about inability to chmod) but still creates foo.exe. -andrej ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <Pine.SV4.4.33.0107120935080.11121-100000@itsrm2.mow.siemens.ru>]
* Re: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n [not found] <Pine.SV4.4.33.0107120935080.11121-100000@itsrm2.mow.siemens.ru> @ 2001-07-12 9:21 ` Peter Stephenson 0 siblings, 0 replies; 6+ messages in thread From: Peter Stephenson @ 2001-07-12 9:21 UTC (permalink / raw) To: Zsh hackers list Andrej Borsenkow wrote: > The problem is, of course, =cmd won't be the same as /path/to/cmd.exe. But > it the same with my patch as well. That might be worth a special case, since the assumption is usually that =cmd returns a file. However, `=' doesn't always return a file in any case, since it expands aliases. That tends to annoy me since it means the behaviour is not well defined. What's more, it seems to try the command path first, then expand aliases, which is not the usual search order; and it never searches for functions. So this seems to me more confusing than useful. -- Peter Stephenson <pws@csr.com> Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ********************************************************************** ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1010711171527.ZM30915@candle.brasslantern.com>]
* Re: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n [not found] <1010711171527.ZM30915@candle.brasslantern.com> @ 2001-07-11 17:24 ` Peter Stephenson 2001-07-12 7:18 ` Sven Wischnowsky 0 siblings, 1 reply; 6+ messages in thread From: Peter Stephenson @ 2001-07-11 17:24 UTC (permalink / raw) To: Zsh hackers list "Bart Schaefer" wrote: > On Jul 11, 1:30pm, Andrew Markebo wrote: > } aes@NOCTURN:Jul04<130> cvs --help-options > } zsh: correct 'cvs' to '_cvs' [nyae]? n > > Aside to zsh-workers: Regardless of the above, this really shouldn't > happen. I'd hate to suggest special-casing a leading underscore in the > correction code. Other possibilities? Well, the *real* fix is to make the correction code use the completion system to generate corrections and do it with shell functions. But I suspect that's a huge amount of work, since the completion system is heavily tied into zle. -- Peter Stephenson <pws@csr.com> Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ********************************************************************** ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n 2001-07-11 17:24 ` Peter Stephenson @ 2001-07-12 7:18 ` Sven Wischnowsky 0 siblings, 0 replies; 6+ messages in thread From: Sven Wischnowsky @ 2001-07-12 7:18 UTC (permalink / raw) To: zsh-workers Peter Stephenson wrote: > "Bart Schaefer" wrote: > > On Jul 11, 1:30pm, Andrew Markebo wrote: > > } aes@NOCTURN:Jul04<130> cvs --help-options > > } zsh: correct 'cvs' to '_cvs' [nyae]? n > > > > Aside to zsh-workers: Regardless of the above, this really shouldn't > > happen. I'd hate to suggest special-casing a leading underscore in the > > correction code. Other possibilities? > > Well, the *real* fix is to make the correction code use the completion > system to generate corrections and do it with shell functions. But I > suspect that's a huge amount of work, since the completion system is > heavily tied into zle. I've been thinking about this ever since we added correction to the completion system... There's another problem, namely: where to make it try correction. After each word, but what exactly is a word here. And what about things like `../$foo/bar' -- it might be that it's the `$foo' that really should be `Foo' or whatever. Very complicated that. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-07-12 14:04 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <"Andrej Borsenkow"'s message of "Thu, 12 Jul 2001 09:37:42 +0400." <Pine.SV4.4.33.0107120935080.11121-100000@itsrm2.mow.siemens.ru> [not found] ` <Tc0a88d0154b316666a@mailsweeper01.cambridgesiliconradio.co m> 2001-07-12 11:06 ` ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n Michael Schaap 2001-07-12 11:57 ` Andrej Borsenkow 2001-07-12 14:04 ` Andrej Borsenkow [not found] <Pine.SV4.4.33.0107120935080.11121-100000@itsrm2.mow.siemens.ru> 2001-07-12 9:21 ` Peter Stephenson [not found] <1010711171527.ZM30915@candle.brasslantern.com> 2001-07-11 17:24 ` Peter Stephenson 2001-07-12 7:18 ` Sven Wischnowsky
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ 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).