summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-01-17 15:41:21 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-01-17 15:41:21 +0000
commitcff1c7648d6041e15cf53741b742cb6d01427419 (patch)
tree41806d2c65c6a8d054b7cc6d6152b859e6995285
parenteacb7008ce0c179eefd9cabd8bcd7328b1bf75a8 (diff)
Correct parsing of quoted strings in the argument list
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1059956 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
index 00f1626bdb..bd77c2cc1d 100644
--- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
+++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
@@ -505,7 +505,7 @@ public class Shell {
int quotedString(String[] toks, int i) {
if (toks[i].startsWith("\"") || toks[i].startsWith("'")) {
for (int j=i+1; j<toks.length; j++) {
- if (toks[j].endsWith(toks[i].substring(0,0))) {
+ if (toks[j].endsWith(toks[i].substring(0,1))) {
return j;
}
}