zsh-users
 help / color / mirror / code / Atom feed
* a question about argument corrections
@ 2005-08-07  6:21 Wataru Kagawa
  2005-08-07  6:31 ` UVV
  0 siblings, 1 reply; 3+ messages in thread
From: Wataru Kagawa @ 2005-08-07  6:21 UTC (permalink / raw)
  To: zsh-users

Hi all,

I find the 'correctall' option to be useful in most cases, except for  
the case described below.

zsh% ls
foo1 foo2 foo3
zsh% cp foo3 foo4
zsh: correct 'foo4' to 'foo3'? [nyae] n

The same thing happens for the mv command.

zsh% mv foo3 foo4
zsh: correct 'foo4' to 'foo3'? [nyae] n

I wouldn't want to be asked for the correction as long as foo4  
doesn't exist.  Is there a way to customize this so that only the  
first file is checked when the command is cp or mv?

Suggestions are greatly appreciated.

Wataru Kagawa


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

* Re: a question about argument corrections
  2005-08-07  6:21 a question about argument corrections Wataru Kagawa
@ 2005-08-07  6:31 ` UVV
  2005-08-07  6:52   ` Wataru Kagawa
  0 siblings, 1 reply; 3+ messages in thread
From: UVV @ 2005-08-07  6:31 UTC (permalink / raw)
  To: Wataru Kagawa, zsh-users

Wataru Kagawa пишет:

> Hi all,
>
> I find the 'correctall' option to be useful in most cases, except for 
> the case described below.
>
> zsh% ls
> foo1 foo2 foo3
> zsh% cp foo3 foo4
> zsh: correct 'foo4' to 'foo3'? [nyae] n
>
> The same thing happens for the mv command.
>
> zsh% mv foo3 foo4
> zsh: correct 'foo4' to 'foo3'? [nyae] n
>
> I wouldn't want to be asked for the correction as long as foo4 doesn't 
> exist. Is there a way to customize this so that only the first file is 
> checked when the command is cp or mv?
>
> Suggestions are greatly appreciated.
>
> Wataru Kagawa
>
>
>
Hi!
Try to turn off spelling correction for a single command, e.g.
alias mv='nocorrect mv'


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

* Re: a question about argument corrections
  2005-08-07  6:31 ` UVV
@ 2005-08-07  6:52   ` Wataru Kagawa
  0 siblings, 0 replies; 3+ messages in thread
From: Wataru Kagawa @ 2005-08-07  6:52 UTC (permalink / raw)
  To: UVV, zsh-users


On 2005/08/07, at 15:31, UVV wrote:
> Hi!
> Try to turn off spelling correction for a single command, e.g.
> alias mv='nocorrect mv'

Thanks for the suggestion.
That takes care of the second file, but how can I still allow  
spelling corrections to work for the first file?  For example,

zsh% ls
foo1 foo2 foo3
zsh% mv fo3 foo4

I would like zsh to ask if 'fo3' should be corrected to 'foo3'.

Thanks.


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

end of thread, other threads:[~2005-08-07  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-07  6:21 a question about argument corrections Wataru Kagawa
2005-08-07  6:31 ` UVV
2005-08-07  6:52   ` Wataru Kagawa

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