Attachments (1)
Change History (14)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
comment:3 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Right, tested this too and it works like this. Also "--ignore-attributes" does what it is supposed to do. Closing as invalid.
by , 17 years ago
comment:4 by , 17 years ago
Mmm... I tried again, but, in my hrev25628, cp doesn't work.
Above is Terminal's log. TestSrc.txt is saved by StyledEdit and has some attrs. But, after cp, TestDest.txt doesn't have attrs.
cp seem to copy icon related attributes.
comment:5 by , 17 years ago
That'd be a bug then. Are you sure you're not using a different version of cp? Can you post what "which cp" outputs and can you check if the "--ignore-attributes" argument is listed in "cp --help"?
comment:6 by , 17 years ago
"which cp" returns "/bin/cp" and "--ignore-attributes" argument is listed before "-i, --interactive".
comment:7 by , 17 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Type: | enhancement → bug |
Then this is a bug. What filesystem does this happen on? Also it doesn't seem that you're copying between volumes or such.
comment:8 by , 17 years ago
Filesystem is BFS, and, src and dest volume are same.
In Senryu distribution (VirtualBox), cp works well. It may be my problem about Haiku build.
comment:9 by , 16 years ago
What's the status of this bug? Shinta does this still happen with the latest revision? Does cp fail to copy attributes with every file? Steps to reproduce?
comment:10 by , 16 years ago
I found that cp doesn't copy attributes when the size of file is zero. For example, launch StyledEdit and save document before typing anything, then, cp. cp doesn't copy BeIDE's settings file's attributes, too.
Tested on hrev26003.
comment:11 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
Yep. Easy to reproduce. I'll look into it tonight, if no one else beats me on time. Thanks.
I'd tend to classify this as invalid. The cp command has never copied BFS attributes and IMO should not either (it's a handy way of getting rid of attributes). So this is expected behaviour. There is "copyattr -d" that copies file data and attributes and should be used to achieve attribute and data copies from the command line. But I won't decide on that, waiting for other opinions.