[ https://issues.apache.org/jira/browse/ZOOKEEPER-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13693286#comment-13693286 ]
Amichai Rothman commented on ZOOKEEPER-1663: -------------------------------------------- The array was used in order for that glob expression to expand properly into multiple paths where each can contain a space (e.g. if ZOOKEEPER_PREFIX contains a space), so they can be passed on as such - as opposed to a single string with spaces in it (losing the individual paths) or multiple strings with no space in them (cutting the individual paths in the middle where they contain spaces), which is what the simpler syntax achieves. Both alternatives would fail when passed as arguments to a command later on. An array is the only way I found to do this, but if there is a better way, by all means use it. > scripts don't work when path contains spaces > -------------------------------------------- > > Key: ZOOKEEPER-1663 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1663 > Project: ZooKeeper > Issue Type: Bug > Components: scripts > Affects Versions: 3.4.5 > Environment: Kubuntu 12.10 (GNU bash 4.2.37) > Reporter: Amichai Rothman > Priority: Minor > Fix For: 3.5.0, 3.4.6 > > Attachments: ZOOKEEPER-1663-ls.trunk.patch, ZOOKEEPER-1663.patch, > ZOOKEEPER-1663.trunk.patch, ZOOKEEPER-1663.trunk.patch > > > The shell scripts (bin/zk*.sh) don't work when there are spaces in the > zookeeper or java paths. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira