Re: [U2] Piping to a unix command with echo

2008-02-15 Thread Mats Carlid
MAIL PROTECTED]> To: u2-users@listserver.u2ug.org Sent: Friday, 15 February, 2008 3:02:59 PM Subject: Re: [U2] Piping to a unix command with echo Unix is supposed to not process any special characters inside single quotes so drop the change commands and use SQUOTE . -- mats --- u2-u

Re: [U2] Piping to a unix command with echo

2008-02-15 Thread Marco Manyevere
Problem is STR1 may contain a "'", then echo will not know where the string ends, hence the need to escape it. - Original Message From: Mats Carlid <[EMAIL PROTECTED]> To: u2-users@listserver.u2ug.org Sent: Friday, 15 February, 2008 3:02:59 PM Subject: Re: [U2] Pip

Re: [U2] Piping to a unix command with echo

2008-02-15 Thread Mats Carlid
Unix is supposed to not process any special characters inside single quotes so drop the change commands and use SQUOTE . -- mats Marco Manyevere skrev: Im trying to process the contents of a string generated in Universe with an external program by shelling out to the OS as follows: CHANGE '

[U2] Piping to a unix command with echo

2008-02-14 Thread Marco Manyevere
Im trying to process the contents of a string generated in Universe with an external program by shelling out to the OS as follows: CHANGE '\' TO '\\' IN STR1 CHANGE '"' TO '\"' IN STR1 SH.CMD = 'SH -c echo ':QUOTE(STR1):' | ./myscript' EXECUTE SH.CMD CAPTURING RESULT STR1 can contain any characte