zsh-users
 help / color / mirror / code / Atom feed
From: Andrew Markebo <flognat@flognat.myip.org>
To: "Bart Schaefer" <schaefer@candle.brasslantern.com>
Cc: zsh-users@sunsite.dk
Subject: Re: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n
Date: 11 Jul 2001 21:20:13 +0200	[thread overview]
Message-ID: <m3lmlvmfwy.fsf@localhost.localdomain> (raw)
In-Reply-To: <1010711171527.ZM30915@candle.brasslantern.com>

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

Just a thought.. I picked the source for zsh and compiled it under
cygwin.. Forgot to mention which platform before.

/ "Bart Schaefer" <schaefer@candle.brasslantern.com> wrote:
| On Jul 11,  1:30pm, Andrew Markebo wrote:
| } Subject: ehh... zsh: correct 'cvs' to '_cvs' [nyae]? n
| }
| } Commandline correction.. which parameter have I now set wrong??
| } 
| } aes@NOCTURN:Jul04<130> cvs --help-options
| } zsh: correct 'cvs' to '_cvs' [nyae]? n
| } 
| } aes@NOCTURN:Jul04<0> grep
| } zsh: correct 'grep' to 'zgrep' [nyae]? n
| 
| My guess would be that you have *not* set one of either the HASH_CMDS
| or HASH_DIRS setopts (or rather, that you have unsetopt'd them, as
| they are on by default).

I tried setopt HASH_CMDS and HASH_DIRS.. still same problem.. 


[-- Attachment #2: My .zed files --]
[-- Type: application/x-gzip, Size: 3987 bytes --]

[-- Attachment #3: Type: text/plain, Size: 2475 bytes --]


| Does the above happen every time, or only the first time you use a
| particular command, or sporadically?

Everytime.. 
[logged in]
aes@NOCTURN:/<0> grep foo bash.bat                                           
zsh: correct 'grep' to 'zgrep' [nyae]? n                                     
aes@NOCTURN:/<1> grep foo bash.bat                                           
zsh: correct 'grep' to 'zgrep' [nyae]? n                                     
aes@NOCTURN:/<1> grep foo bash.bat                                           
zsh: correct 'grep' to 'zgrep' [nyae]? n            

aes@NOCTURN:/<1> which grep                                                               
/bin/grep            
aes@NOCTURN:/<0> which zgrep                                                              
/bin/zgrep    

aes@NOCTURN:/<0> cvs                                                              
zsh: correct 'cvs' to '_cvs' [nyae]? n 
aes@NOCTURN:/<1> which cvs                                                                
/cygdrive/c/program files/gnu/wincvs 1.2/cvs                                              
aes@NOCTURN:/<0> which _cvs                                                       
_cvs () {                                                                                 
        # undefined                                                          
        builtin autoload -XU                                                              
}                    

| The other possibility is that there are directories in your $PATH that
| are automounted or some such, so that the command does not appear to
| be available until zsh actually attempts to execute it.

path=(/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin
        /cygdrive/c/WINNT/system32 /cygdrive/c/WINNT 
        /cygdrive/c/WINNT/System32/Wbem
        /cygdrive/c/atria/bin '/cygdrive/c/program files/gnu/wincvs 1.2' 
        /cygdrive/c/LiteStep/) 

| 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?

aes@NOCTURN:/<0> scp myset master:                                                        
zsh: correct 'scp' to 'cp' [nyae]? n      
aes@NOCTURN:/<0> which scp                                                                
/bin/scp                      

        /Andy

p.s. Bart sorry for duplicate, forgot to send the reply to the list also.

  reply	other threads:[~2001-07-11 19:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-11 11:30 Andrew Markebo
2001-07-11 17:15 ` Bart Schaefer
2001-07-11 19:20   ` Andrew Markebo [this message]
2001-07-11 22:19     ` Michael Schaap
2001-07-12  5:37       ` Andrej Borsenkow
     [not found]       ` <Pine.SV4.4.33.0107120935080.11121-100000@itsrm2.mow.siemen s.ru>
2001-07-12 11:03         ` Michael Schaap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3lmlvmfwy.fsf@localhost.localdomain \
    --to=flognat@flognat.myip.org \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).