Bug 20797 - [ExternalTools] Need to fix up quoting of variables containing spaces
Summary: [ExternalTools] Need to fix up quoting of variables containing spaces
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P2 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Ryan Cooper CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-06-21 10:38 EDT by Nick Edgar CLA
Modified: 2002-09-18 13:59 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-06-21 10:38:06 EDT
Build 20020620

When a variable has spaces in the value, quotes are added.
This works fine on Windows because the OS strips off quotes.
On Linux, this does not work properly since the quotes are not stripped off by 
the OS, and come through literally in the target shell script or Ant buildfile.

Need to investigate doing our own parsing of quotes, and whether using 
Runtime.exec(String[], ...) instead of Runtime.exec(String, ...) helps at all.
Comment 1 Nick Edgar CLA 2002-06-21 10:38:23 EDT
Post 2.0.
Comment 2 Simon Arsenault CLA 2002-06-21 11:48:03 EDT
See original problem report (bug 20599)
Comment 3 Adam Schlegel CLA 2002-06-25 10:52:34 EDT
Any solution for this bug should handle the case described in bug 20947.
Comment 4 Simon Arsenault CLA 2002-07-22 13:51:35 EDT
To be fixed in 2.0.1
Comment 5 Ryan Cooper CLA 2002-07-25 09:26:34 EDT
I am working on this problem (and bug 20947). Nick, please reassign this PR to 
me.
Comment 6 Simon Arsenault CLA 2002-07-25 10:36:19 EDT
Also look at past problem reports concerning this issue (some may even be 
marked as fixed).
Comment 7 Simon Arsenault CLA 2002-08-13 15:43:24 EDT
Code changes done by Ryan in 2.0.1 code stream. Created bug 22402 to port this 
change into 2.1 stream.