LWN.net Logo

Control characters in file names

Control characters in file names

Posted Nov 25, 2010 22:00 UTC (Thu) by Spudd86 (guest, #51683)
In reply to: Control characters in file names by jengelh
Parent article: Ghosts of Unix past, part 4: High-maintenance designs

if there's a file that starts with - or has any sort of control character it will break.

see here: http://www.dwheeler.com/essays/filenames-in-shell.html and here: http://www.dwheeler.com/essays/fixing-unix-linux-filename... although for some reason I remember it being much worse than that, though being correct everywhere in your script could eventually be a pain.


(Log in to post comments)

Control characters in file names

Posted Dec 2, 2010 19:19 UTC (Thu) by Ross (subscriber, #4065) [Link]

Are you proposing to remove hyphens from filenames too, or is this getting off-topic? :)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds