parsing options and shell metacharacters
-
Alex-SF
- Tag set to options
-
Charles Scott
Ran into this again.....
I have the following shell invocation:
this doesn't work:
curl -L -k -f -o /tmp/ffffff.jar 'http://xcomm-nexus.local:8080/nexus/service/local/artifact/maven/content?r=snapshots&g=com.x.testapp&a=testapp&p=jar\&v=${option.version}'where this does:
curl -L -k -f -o /tmp/ffffff.jar 'http://xcomm-nexus.local:8080/nexus/service/local/artifact/maven/content?r=snapshots\&g=com.x.testapp\&a=testapp\&p=jar\&v=${option.version}'Notice that when I single quote, it is not going to work
I still have to escape the ampersand's
where as in a normal shell, I do not have to do this.
-
Charles Scott
stupid markup destroyed my example entirely
-
Greg Schueler
fixed formatting for you
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.