bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#160849: coreutils: bug report for GNU Core Utils


From: Andreas 'ads' Scherbaum
Subject: Re: Bug#160849: coreutils: bug report for GNU Core Utils
Date: Fri, 24 Jun 2005 16:37:57 +0200 (CEST)

On Fri, 24 Jun 2005, Andreas Schwab wrote:

 -f, --force, --reply=yes     do not prompt before overwriting
 -i, --interactive, --reply=query
                              prompt before overwrite
     --reply={yes,no,query}   specify how to handle the prompt about an
                                existing destination file
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^

This part is the problem.

If i understand Jim correct, its all not about an existing destination file (mv will just overwrite it), but about how to handle the case, if the destination file is not writable:


address@hidden:/home/ads > rm -rf abc def
address@hidden:/home/ads > touch abc def
address@hidden:/home/ads > ls -ld abc def
-rw-r--r--  1 ads ads 0 Jun 24 16:31 abc
-rw-r--r--  1 ads ads 0 Jun 24 16:31 def
address@hidden:/home/ads > /bin/mv --reply=no abc def
address@hidden:/home/ads > ls -ld abc def
ls: abc: No such file or directory
-rw-r--r--  1 ads ads 0 Jun 24 16:31 def


address@hidden:/home/ads > rm -rf abc def
address@hidden:/home/ads > touch abc def
address@hidden:/home/ads > chmod a-w def
address@hidden:/home/ads > ls -ld abc def
-rw-r--r--  1 ads ads 0 Jun 24 16:32 abc
-r--r--r--  1 ads ads 0 Jun 24 16:32 def
address@hidden:/home/ads > /bin/mv --reply=no abc def
address@hidden:/home/ads > ls -ld abc def
-rw-r--r--  1 ads ads 0 Jun 24 16:32 abc
-r--r--r--  1 ads ads 0 Jun 24 16:32 def


This is, what i mentioned before: this parameter does not really what someone would expect.


Regards

--
                                Andreas 'ads' Scherbaum
Failure is not an option. It comes bundled with your Microsoft product.
 (Ferenc Mantfeld)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]