OT: spaces in pathnames
OT: spaces in pathnames
- Subject: OT: spaces in pathnames
- From: Lawrence Paulson <email@hidden>
- Date: Wed, 8 Jun 2005 14:18:57 +0100
Can anybody point me to a tutorial on how to write shell scripts that
work even if supplied pathnames contain spaces?
Specifically, I have to pass an argument list from one program to
another. It seems that I have to write the filenames to a file. Using
ls -db, I can write the filenames with special characters fully
escaped. The second program (invoked via open-x11) somehow needs to
read these filenames. If I use $(<$FILENAME), the filenames get split
at the spaces despite the backslashes, e.g. Isabelle\ app\ bundle
becomes three words.
Any thoughts? Some hack using IFS?
Larry Paulson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden