DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th March 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default Case in file names

I have always heard that in unix case matters, that File_001 is different from file_001.

That being so, why does the following command:

mv last.week.tonight.mkv Last.Week.Tonight.mkv

result in last.week.tonight.mkv -no change.

This has happened before where trying to change a lower case file name to upper case results in no change.

What am I not understanding?
Reply With Quote
  #2   (View Single Post)  
Old 10th March 2020
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 344
Default

Could be a permissions problem(?), do you own the file?
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #3   (View Single Post)  
Old 10th March 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

It's not a permission problem since I can rename last.week.tonight.mkv to Last.mkv and the rename that to Last.Week.Tonight.mkv.
Reply With Quote
  #4   (View Single Post)  
Old 10th March 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I agree with bsd-keith. Something else is going on, which may be shell or permissions related.
Code:
$ touch this.is.a.file
$ mv this.is.a.file This.Is.A.File
$ ls *ile
This.Is.A.File
$
Reply With Quote
  #5   (View Single Post)  
Old 10th March 2020
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

What shell are you using?
Is the result the same when used from another shell (csh, bash, etc)?
Is the mv command an alias or function? Do this:

Quote:
$ type mv
What is the output from

Quote:
$ /bin/mv -v last.week.tonight.mkv Last.Week.Tonight.mkv
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'

Last edited by ip6ix; 10th March 2020 at 05:30 PM. Reason: clarification
Reply With Quote
  #6   (View Single Post)  
Old 11th March 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

The shell is /bin/ksh

I don't know enough to know what this means or why, but:

If the file in question is on a USB flash drive, permissions root:wheel 0644 the mv operation fails.

If I copy the file to my HD permissions now root:stan 0644 the mv operation suceeds.

So, on the flash drive mv saturday.night.live.mkv Saturday.Night.Live.mkv has no effect.

cp /usb/saturday.night.live ~/
cd ~/
mv saturday.night.live.mkv Saturday.Night.Live.mkv works.

I appreciate people commenting on this. It's just something I'm curious about.
Reply With Quote
  #7   (View Single Post)  
Old 11th March 2020
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

Quote:
Originally Posted by stanl View Post
If the file in question is on a USB flash drive, permissions root:wheel 0644 the mv operation fails.
What is the filesystem on the USB drive?

https://en.wikipedia.org/wiki/Case_preservation
__________________
Are you infected with Wetiko?
Reply With Quote
  #8   (View Single Post)  
Old 11th March 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I can recreate stanl's problem with a FAT32 filesystem formatted on a FAT32L MBR partition, type 0x0C. I don't have the time to debug this, unfortunately.
Reply With Quote
  #9   (View Single Post)  
Old 11th March 2020
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
What is the filesystem on the USB drive?

https://en.wikipedia.org/wiki/Case_preservation
MS_DOS, which, if I understand the wikipedia article correctly, would explain it.
Reply With Quote
Old 13th March 2020
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

Quote:
Originally Posted by stanl View Post
MS_DOS, which, if I understand the wikipedia article correctly, would explain it.
MSDos is not a FS!
Then, it's not a good reply
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic DNS for Gandi.net domain names asemisldkfj Off-Topic 3 20th February 2013 03:01 AM
Security Case Study: Securing Web Applications J65nko News 1 2nd April 2012 02:39 PM
Hard disk won't work after changing case sepuku OpenBSD General 68 8th September 2011 03:09 PM
OpenBSD, pf.conf and user IDs / names PvSw1 OpenBSD General 0 7th February 2011 02:14 PM
The case of the missing 24GB Bruco FreeBSD General 3 20th October 2008 06:44 PM


All times are GMT. The time now is 12:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick