[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15173: [cp] --link overrides dereference settings
From: |
Gian Piero Carrubba |
Subject: |
bug#15173: [cp] --link overrides dereference settings |
Date: |
Thu, 31 Oct 2013 22:28:47 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* [Thu, Oct 31, 2013 at 02:54:59PM +0100] Gian Piero Carrubba:
Oh... I was tweaking a bit the last patch posted by Bernhard in order
to let it be POSIX compliant (but now I have to add: "for my
interpretation of POSIX"), but didn't had the time to complete before
going to work. Will probably finish it up anyway this evening or
tomorrow, at this point at least for comparing how far we're currently
are from "POSIX".
Here it is.
First of all, sorry for having generated a lot of noise. I completely
misunderstood the meaning of --no-preserve=links. Having get rid of
that, the differences in the results of the tests are a lot less.
$ fgrep "DIFFERENCE in Test: " testit.log | sed 's/^.*: //'
cp -l filelink ...
cp -l --preserve=links filelink ...
cp -L -l filelink ...
cp -L -l --preserve=links filelink ...
cp -L -l -R filelink ...
cp -L -l -R --preserve=links filelink ...
cp -H -l filelink ...
cp -H -l --preserve=links filelink ...
cp -H -l -R filelink ...
cp -H -l -R --preserve=links filelink ...
I think they are all legit (full log and differences summary attached).
* Changes with regard to the last patch posted by Bernhard.
=== Minor changes
- use 'dereference' instead of 'deref' in order to be consistent with
'x->dereference' and for passing the "grep test"[0]
- use 'command_line_arg' instead of 'cli_arg' in order to be consistent
with an already used variable and for passing the "grep test"
- move up the declaration of bool dereference in order to use it for
every invocation of create_hard_link()
- clean up the initialization of 'flags' in create_hard_link()
[0] i.e.: http://jamie-wong.com/2013/07/12/grep-test/
=== Major changes
- dereference by default (i.e.: unless --no-dereference is used) the
source files.
I promise that I will not insist anymore :), but I really think this
is important for consistency from a user point of view.
Ciao,
Gian Piero.
bug-15173.patch
Description: Text Data
testit-differences-summary.log.gz
Description: Binary data
testit.log.gz
Description: Text document
- bug#15173: [cp] --link overrides dereference settings, (continued)
- bug#15173: [cp] --link overrides dereference settings, Gian Piero Carrubba, 2013/10/23
- bug#15173: [cp] --link overrides dereference settings, Pádraig Brady, 2013/10/29
- bug#15173: [cp] --link overrides dereference settings, Bernhard Voelker, 2013/10/30
- bug#15173: [cp] --link overrides dereference settings, Bernhard Voelker, 2013/10/30
- bug#15173: [cp] --link overrides dereference settings, Pádraig Brady, 2013/10/31
- bug#15173: [cp] --link overrides dereference settings, Bernhard Voelker, 2013/10/31
- bug#15173: [cp] --link overrides dereference settings, Pádraig Brady, 2013/10/31
- bug#15173: [cp] --link overrides dereference settings, Gian Piero Carrubba, 2013/10/31
- bug#15173: [cp] --link overrides dereference settings, Gian Piero Carrubba, 2013/10/31
- bug#15173: [cp] --link overrides dereference settings, Gian Piero Carrubba, 2013/10/31
- bug#15173: [cp] --link overrides dereference settings,
Gian Piero Carrubba <=