sh scripting question

Ralf Mardorf ralf-mardorf at riseup.net
Mon Oct 19 06:13:05 UTC 2020


On Fri, 16 Oct 2020 14:38:02 +0100, Steve O'Hara-Smith wrote:
>On Fri, 16 Oct 2020 15:19:42 +0200 Polytropon wrote:
>
>> Fully correct, but also suffers from the lack of a definition
>> of "reasonable" that works everywhere every time. :-)  
>
>	POSIX portable filenames -they're pretty restrictive though.

Speak of the devil and the devil shows up.

The first copy is from an ext4 partition to another ext4 partition.
The second copy is from the the ext4 partition again, but to a hfs+
partition.

[root at archlinux rocketmouse]# date; cp -ai /mnt/winos10/share/.a6400/ /mnt/u5.20sep/; echo $?; date; diff -r /mnt/winos10/share/.a6400/ /mnt/u5.20sep/.a6400/; echo $?; date; cp -ai /mnt/winos10/share/.a6400/ /mnt/u5.hfs/; echo $?; date; diff -r /mnt/winos10/share/.a6400/ /mnt/u5.hfs/.a6400/; echo $?; date 
Mon 19 Oct 06:00:04 CEST 2020
0
Mon 19 Oct 06:25:30 CEST 2020
0
Mon 19 Oct 06:52:01 CEST 2020
cp: cannot create regular file '/mnt/u5.hfs/.a6400/2020-09-05+06_first_steps/editings/09_00501_edit.jpg': File exists
1
Mon 19 Oct 07:21:52 CEST 2020
Only in /mnt/winos10/share/.a6400/2020-09-05+06_first_steps/editings: 09_00501_edit.jpg
1
Mon 19 Oct 07:51:34 CEST 2020
[root at archlinux rocketmouse]# /usr/bin/ls -hl /mnt/winos10/share/.a6400/2020-09-05+06_first_steps/editings/ /mnt/u5.hfs/.a6400/2020-09-05+06_first_steps/editings/ 
/mnt/u5.hfs/.a6400/2020-09-05+06_first_steps/editings/:
total 53M
-rw-r--r-- 1 rocketmouse rocketmouse 3.3M Sep 13 00:58 09_00501_edit.JPG
-rw-r--r-- 1 rocketmouse rocketmouse  43M Sep 13 03:42 09_00691_edit.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 1.7M Sep 13 15:09 09_00802_edit_1.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 2.5M Sep 13 15:15 09_00802_edit_2_stretched_contrast.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 1.1M Sep 13 15:10 09_00803_edit_1.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 1.6M Sep 13 15:27 09_00803_edit_2_stretched_contrast.JPG

/mnt/winos10/share/.a6400/2020-09-05+06_first_steps/editings/:
total 61M
-rw-r--r-- 1 rocketmouse rocketmouse 3.3M Sep 13 00:58 09_00501_edit.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 8.0M Sep 13 00:40 09_00501_edit.jpg
-rw-r--r-- 1 rocketmouse rocketmouse  43M Sep 13 03:42 09_00691_edit.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 1.7M Sep 13 15:09 09_00802_edit_1.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 2.5M Sep 13 15:15 09_00802_edit_2_stretched_contrast.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 1.1M Sep 13 15:10 09_00803_edit_1.JPG
-rw-r--r-- 1 rocketmouse rocketmouse 1.6M Sep 13 15:27 09_00803_edit_2_stretched_contrast.JPG


More information about the freebsd-questions mailing list