From: "Gerad S." Date: 2011-02-11T05:02:46+09:00 Subject: Re: System calls with ` in parameters Brian Candler wrote in post #980806: > > Does this test case represent your problem? > >>> someVar="foo`bar" > => "foo`bar" >>> `echo "#{someVar}"` > sh: Syntax error: EOF in backquote substitution > => "" > This indeed is a good representation of the problem. I will have to research if my #{someVar} could possibly contain a ' character. Perhaps Shellwords would be a safer bet. In case you are still interested, an example of the command with actual data is below (notice how the sequence @@@@@@S` in the string before " | collab-table.py" is causing the issue): `echo "Facs Rep|21|@@@@@@Ir||FACS Version 2.1.36.0|2010-09-27 10:57:04.7108-07|21|2|Under Review|||||f||||||f|2010-09-27 11:14:42.686225-07|09/27/2010||||message|t|Facs Rep|09/27/2010|closed|f||18| |||| Facs Rep|21|@@@@@@Lz||FACS Version 3.1.0.0|2010-10-27 10:02:43.778138-07|21|2|Under Review|||||f||||||f|2010-10-27 10:51:17.216686-07|10/27/2010||||message|t|Facs Rep|10/27/2010|closed|f||19| |||| Facs Rep|21|@@@@@@N]||FACS Version 3.2.0.0|2010-11-09 16:56:17.214108-08|21|1|Under Review|||||f||||||f|2010-11-09 16:56:17.214108-08|11/09/2010||||message|t|Facs Rep|11/09/2010|open|f||20| |||| Facs Rep|21|@@@@@@QT||FACS Version 3.3.0.0|2010-12-09 10:19:06.322005-08|21|1|Under Review|||||f||||||f|2010-12-09 10:19:06.322005-08|12/09/2010||||message|t|Facs Rep|12/09/2010|open|f||21| |||| Facs Rep|21|@@@@@@S`||FACS Version 3.4.0.0|2011-01-07 10:17:25.142238-08|21|1|Under Review|||||f||||||f|2011-01-07 10:17:25.142238-08|01/07/2011||||message|t|Facs Rep|01/07/2011|open|f||22| ||||" | ./collab-table.py "message" "D260888" "hub" "ps_nysdot" "New York State Department of Transportation" "Alexander Hamilton Bridge & Highbridge Interchange Ramps Rehab" "Facs Rep" "21" "2011-02-10 11:58:12-0800" "20" "4" "4"> "cor_6/2011-02-10/D260888/correspondence/CollabmessageList_4.html"` -- Posted via http://www.ruby-forum.com/.