Leading spaces are common, actually
Leading spaces are common, actually
Posted Mar 28, 2009 9:21 UTC (Sat) by explodingferret (guest, #57530)In reply to: Leading spaces are common, actually by quotemstr
Parent article: Wheeler: Fixing Unix/Linux/POSIX Filenames
Leading and trailing spaces *do* have particular problems in shell scripts, because the 'read' command (which is needed to read line-separated data from commands) strips leading and trailing spaces/tabs unless IFS is set and does not contain spaces/tabs.
perl also has problems with leading spaces in filenames, unless you use the right kind of open command (perldoc -f open).
