[Rant] sys call to just replace \'s?
Stefan Lang
langstefan at gmx.at
Fri Dec 23 09:26:39 EST 2005
On Friday 23 December 2005 06:17, Kevin Burge wrote:
> Stefan,
>
> Is there a sys call to just replace \'s. I've run into the
> situation where I have spaces in the name, BUT, I cannot have
> quotes around it, i.e. for INCLUDE environment variable:
>
> INCLUDE="C:\bla bla\etc";....
>
> causes problems (didn't work for me - but might have been something
> else wrong). Had to be:
> INCLUDE=C:\bla bla\etc;....
>
> to work.
>
> I don't know of a good name.
If you just want to remove the quotes from a string,
use the String#delete method.
pathes = '"C:\bla bla\etc";....'
pathes_without_quotes = pathes.delete('"')
Or do you want something else?
Regards,
Stefan
More information about the make-cafe
mailing list