Skip to content

crolsma/aproname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

aproname

Summary

Detects invalid and problematic pathname patterns, accounting for both unix-like and Microsoft OSes.

Patterns include:

  1. POSIX Portable Filename Character Set
  2. ustar pathname length restrictions
  3. MS-DOS and Microsoft Windows restrictions
  4. Additional restrictions to avoid common usability problems

Usage

Check pathnames given as arguments:

aproname pathname...

Check the pathnames in a directory tree:

find path... -exec aproname {} +

Check pathnames from STDIN:

... | xargs -0 aproname

Invalid pathnames are printed to STDOUT with a summary of problems for each name, and the script returns exit code 1 if any problematic patterns are found. Otherwise it returns exit code 0.

References