Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2020 08:12:50 +0200
From:      Ralf Mardorf <ralf-mardorf@riseup.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: sh scripting question
Message-ID:  <20201019081250.2c38af5c@archlinux>
In-Reply-To: <20201016143802.11156879863c4885fb3dd2e7@sohara.org>
References:  <24456.60388.135834.43951@jerusalem.litteratus.org> <20201015204226099763897@bob.proulx.com> <c6096f5d-84f5-af81-7407-9bda06c7b240@panix.com> <20201016063211.2f8b3a74@archlinux> <20201016151942.e01600b6.freebsd@edvax.de> <20201016143802.11156879863c4885fb3dd2e7@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201019081250.2c38af5c>