info-mtools
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Info-mtools] something like mkmanifest for long names?


From: Paul Fox
Subject: Re: [Info-mtools] something like mkmanifest for long names?
Date: Tue, 31 Mar 2009 07:40:22 -0400

alain wrote:
 > Unfortunately, mkmanifest is a a remainder of a time when neither Windows
 > nor mtools supported any long file names, and thus only attempts to map
 > every filename to a short 8+3 name.
 > 
 > Normally mkmanifest wouldn't be needed any more for long file names ...
 > except for special characters, as you noticed.
 > 
 > No replacement exists yet, but as the algorithm is rather simple (replace
 > all dodgy characters with _), it should be easy to write a simple script.

thanks -- yes, shortly after writing i realized exactly how simply the
rename is.  

i was especially pleased when i remembered that bash supports
pattern replacement on variables.  this seems to work, so far:

    renamepat='[\" \*:<>?\\|]'
    newname=${oldname//$renamepat/_}

paul
=---------------------
 paul fox, address@hidden (arlington, ma, where it's 36.1 degrees)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]