Re: Snow Leopard 10.6.2 can't run 'X11.app' (with system log)
Re: Snow Leopard 10.6.2 can't run 'X11.app' (with system log)
- Subject: Re: Snow Leopard 10.6.2 can't run 'X11.app' (with system log)
- From: Bill Campbell <email@hidden>
- Date: Tue, 23 Feb 2010 17:51:05 -0800
- Mail-followup-to: email@hidden
On Tue, Feb 23, 2010, Jeremy Huddleston wrote:
>What Apple apps make files with single quotes by default?
More than 0 which is too many :-).
>While it's true that we should be able to handle these types of files, such
>characters in file names have consistently been problematic because those
>characters have special meaning to the shell. Hence such characters have
>been discouraged in UNIX filenames pretty much forever. In fact, you'd
>have the exact same problem on any other UNIX OS with a recent version of
>xinit since the code in question is not specific to Mac OSX.
The first time I ran into this was probably on the Radio Shack
Model 16 Xenix 27 years ago. Calera Linux had a long-standing
problem generating boot ramdisk images as their routines that did
them didn't take into account the fact that Linux module paths
had whitespace for quite a while (I sent a fixed SRPM to Caldera
that fixed this, but they never got around to using it :-).
Handling arbitrary arguments can be a bit of a problem,
particularly as the shell does different things within
single and double quotes. Simply putting single quotes
around something like ``Henry's Directory'' isn't adequate, and
putting double quotes may well do the wrong thing if there are
characters in the name that the shell will expand (e.g. *).
The special "$@" string splits the arguments in a shell so that
whitespace is retained, but often the arguments are passed to
subprocesses without proper quoting. In the following, arg may
contain whitespace, but will break someprocess as it's called
without quoting $arg.
for arg in "$@"; do
someprocess $arg # should be someprocess "$arg"
done
Bill
--
INTERNET: email@hidden Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792
"I do not feel obliged to believe that the same God who has endowed us
with sense, reason, and intellect has intended us to forego their use."
-- Galileo Galilei
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden