delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/13/16:13:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: How to make `mv the hard way' fail
Date: Mon, 13 Dec 2004 13:09:32 -0800
Lines: 19
Message-ID: <cpl0ed$3fv$1@sea.gmane.org>
References: <cpkq2k$fb0$1 AT sea DOT gmane DOT org> <NUTMEGI9dm5UxP9Fekz000006a2 AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <20041213132339 DOT A37829 AT reliant DOT immure DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: adsl-68-120-146-125.dsl.snfc21.pacbell.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041201 Thunderbird/1.0RC1 Mnenhy/0.6.0.104
In-Reply-To: <20041213132339.A37829@reliant.immure.com>
X-IsSubscribed: yes

wayne willcox wrote:
> If you really want that kind
> of interaction it is a trival shell script that wraps the mv
> command and can prompt the user for any number of things including
> "are you sure",, "again are you sure you want to move this file"

mv already *has* the -i option, and it does just what you describe.

The reason I proposed tacking on this other prompt to the same option is 
that:

(a) the option is called "--interactive" in full, and suggests that it 
controls *all* interactive behavior in "mv".
(b) it seemed ..

(oh, well, never mind...)

I'll just create it as a long-only option for the moment 
(--(no-)copy-dir-if-busy)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019