I'm trying to execute a subproces and get the output:
files = `ls -1 | sed 's/\..*$//' | sort -u`
But it looks like ruby ignores the '
I tried escaping it (\') but that doesn't help.
It's the same with popen.
Is there a solution to this?
(I know I can leave sed away and to that with ruby)
···
--
Roeland
ts1
(ts)
2
I tried escaping it (\') but that doesn't help.
It's \ that you must escape
files = `ls -1 | sed 's/\\..*$//' | sort -u`
Guy Decoux
damn, you're right, what was I thinking..
thanks
···
On Wed, Jun 23, 2004 at 12:12:01AM +0900, ts wrote:
> I tried escaping it (\') but that doesn't help.
It's \ that you must escape
files = `ls -1 | sed 's/\\..*$//' | sort -u`
--
Roeland