zsh-workers
 help / color / mirror / code / Atom feed
* correction/spelling quirks
@ 1995-09-18 20:35 Mark Borges
  1995-09-19 10:08 ` Zoltan Hidvegi
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Borges @ 1995-09-18 20:35 UTC (permalink / raw)
  To: ZSH mailing list

Any idea what causes the following?


$ ls -al ~men/.cshrc
-rw-r--r--   1 men 1300 Thu Sep 30 16:51:48 1993 /cray3/men/.cshrc
$ ls -al ~men/xemacs
zsh: Does ~men/xemacs mean /cray3/men/xemacs [nyae]? n
lrwxrwxrwx   1 men 33 Fri Sep  1 16:09:02 1995 /cray3/men/xemacs -> /cray2/mdb/share/bin/xemacs-19.13

i.e., why does zsh prompt for a spelling correction on the 2nd one and
not the 1st? (~men is /cray3/men)

I think the 1st is more desirable, but I'm more puzzled by the
inconsistency.

  -mb-


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

* Re: correction/spelling quirks
  1995-09-18 20:35 correction/spelling quirks Mark Borges
@ 1995-09-19 10:08 ` Zoltan Hidvegi
  0 siblings, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1995-09-19 10:08 UTC (permalink / raw)
  To: zsh-workers

> $ ls -al ~men/.cshrc
> -rw-r--r--   1 men 1300 Thu Sep 30 16:51:48 1993 /cray3/men/.cshrc
> $ ls -al ~men/xemacs
> zsh: Does ~men/xemacs mean /cray3/men/xemacs [nyae]? n
> lrwxrwxrwx   1 men 33 Fri Sep  1 16:09:02 1995 /cray3/men/xemacs -> /cray2/mdb/share/bin/xemacs-19.13
> 
> i.e., why does zsh prompt for a spelling correction on the 2nd one and
> not the 1st? (~men is /cray3/men)
> 
> I think the 1st is more desirable, but I'm more puzzled by the
> inconsistency.

I sent a fix for that a while ago in art. 280.

Zoltan


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

* Re: correction/spelling quirks
       [not found] ` <199510031024.LAA29220@bolyai.cs.elte.hu>
@ 1995-10-03 16:04   ` Mark Borges
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Borges @ 1995-10-03 16:04 UTC (permalink / raw)
  To: hzoli; +Cc: ZSH mailing list

>> Zoltan Hidvegi(ZH) wrote on Tue, 3 Oct 1995 11:24:58 +0100 (MET):
>> Hmm, I don't get it. I'm seeing this in 
>> 
>> $ echo $ZSH_VERSION
>> 2.6-beta10-hzoli10.2
>> $ ls -al ~men/xemacs
>> zsh: Does ~men/xemacs mean /cray3/men/xemacs [nyae]? y
>> lrwxrwxrwx [elided] /cray3/men/xemacs -> /cray2/mdb/share/bin/xemacs-19.13
>> 
>> The patch you refer to:
>> 
>> X-Mailing-List: <zsh-workers@math.gatech.edu> archive/latest/280
>> 
>> is for hzoli10.1 which should already be in 10.2, right? (indeed, when I tried
>> to apply it, patch indicated it was reverse polarity).

ZH> The patch is really in 10.2.  I cannot reproduce it here.  Could
ZH> you tell me how to reproduce it, starting with zsh -f from an
ZH> empty directory?

Certainly.

Hmm, I see what triggers it now. The link expanded by tilde expansion
must be nonsensical (i.e., the error only occurs if the file pointed
to by the symlink does not exist). Sorry I hadn't noticed that before
(I rm'd the file pointed to by ~men/xemacs, but he didn't remove the
symlink).

Here's an example like you asked:
------------------------------------------------------------------------------

charney$ \rm -rf junk
charney$ mkdir junk
charney$ cd junk
charney$ ~/bin/sparc/zsh-2.6h10.2 -f
charney% echo $ZSH_VERSION 
2.6-beta10-hzoli10.2
charney% setopt correctall
charney% pwd
/tmp/mdb/junk
charney% ln -s /tmp/mdb/junk/foo ~/junk
charney% echo ~mdb
/cray2/mdb
charney% ls -al ~mdb/junk
zsh: Does ~mdb/junk mean /cray2/mdb/junk [nyae]? n
lrwxrwxrwx   1 mdb      climate       17 Oct  3 09:54 /cray2/mdb/junk -> /tmp/mdb/junk/foo
charney% touch foo
charney% ls -al ~mdb/junk
lrwxrwxrwx   1 mdb      climate       17 Oct  3 09:54 /cray2/mdb/junk -> /tmp/mdb/junk/foo
charney% \x04
charney$

------------------------------------------------------------------------------
Notice that after the link was made to point to something that existed
the correction quirk did not happen. So maybe it's more a case of a
confusing "error message" than a real bug.

Thanks for looking into it.

  -mb-


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

end of thread, other threads:[~1995-10-03 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-09-18 20:35 correction/spelling quirks Mark Borges
1995-09-19 10:08 ` Zoltan Hidvegi
     [not found] <9510022306.AA03882@charney.cdc.noaa.gov>
     [not found] ` <199510031024.LAA29220@bolyai.cs.elte.hu>
1995-10-03 16:04   ` Mark Borges

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