pere.noel
10/5/2006 4:24:00 PM
Paul Lutus <nospam@nosite.zzz> 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