scp ignores case in filenames?

Mojca Miklavec mojca at macports.org
Fri Jan 19 11:08:43 UTC 2018


On 19 January 2018 at 11:23, Jan Stary wrote:
> This is of course not MP related;
> please kindly point me to the appropriate Apple forum.
>
> Create a local file:
>
>         user at local$ echo local > /tmp/file
>
> Prepare a file on a remote machine,
> with the "same" name, but uppercase:
>
>         user at remote$ echo remote > /tmp/FILE
>
> Now copy the remote file to local:
>
>         user at local$ scp user at remote:/tmp/FILE /tmp/
>
>         user at local$ cat /tmp/file
>         remote
>
>         user at local$ ls -li /tmp/FILE /tmp/file
>         5155210 -rw-r--r--  1 hans  wheel  7 Jan 19 11:19 /tmp/FILE
>         5155210 -rw-r--r--  1 hans  wheel  7 Jan 19 11:19 /tmp/file
>
> This is MacOS 10.13.2. Is this expected?

Yes.

If you want/need a different behaviour, you should reformat your hard
drive to a case-sensitive file system.

Mojca


More information about the macports-users mailing list