[fpc-devel] Re: TProcess, bash, and escaping quotes
cobines
cobines at gmail.com
Thu Feb 18 01:57:19 CET 2010
If you look at how TProcess parses command line into parameters
(fcl-process/src/unix/process.inc CommandToList) you see that it
doesn't support escaping with backslash (inside or outside double
quotes). Your command is parsed as (using FPC 2.5.1):
1: bash
2: -c
3: "ifconfig | grep -E -e \"inet6?
4: addr:\" | grep -v -E -e\"(127.0.0.1|::1|Scope:Link)\" | sed
-e\"s/^.*addr:\s*\(\S*\)\(\/\d+\)*.*$/\1/g\""
--
cobines
More information about the fpc-devel
mailing list