From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-10-06T01:25:12+09:00 Subject: Re: script arg with doble quote Paul Lutus wrote: > But you've just posted the solution -- single quote the argument. i can't the double quotes are eated by the shell and if i add the single quote, it's to late > > When you post a problem and seek a solution, please make sure to state the > problem clearly, like this: > > 1. I wanted this: ________________________ transform a unix path into an url provided the path is under the apache server root. /path/to/"Hello\ world!"/ > > 2, But instead, I got this: _________________________ in case the path contains double quotes, the double quotes are eated by the shell and or finder (mac os x). then i got : /path/to/Hello\ world!/ > > 3. Here is how (2) differs from (1): _____________________ the " vanished. > > 4. Here are the reasons I can't apply the obvious fix: _______________ the obvious fix being to wrapp the path with single quote like that : '/path/to/"Hello\ world!"/' this would protect the double quote, unfortunately at the time i can add single quotes (within a shell script or a ruby one) it is too late because double quote vanished due (i believe) to the shell way of passing arf to any kind of scripting facility (zsh, sed, ruby)... -- une b�vue