Skip to content

How to properly quote [ in cmd? #124

Answered by nat-n
vitoyucepi asked this question in Q&A
Discussion options

You must be logged in to vote

hi @vitoyucepi,

Could you describe in a bit more detail what you're trying to do and how?

I'm not sure what the issue with escaping is, but I see you're trying to use shell syntax so you need to make sure the task is a shell task. The following should work:

setup.shell = "if [ ! -f test ]; then touch test; fi"

Also #12 might be interesting for you as well, though there's no ETA as of yet.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vitoyucepi
Comment options

@nat-n
Comment options

Answer selected by vitoyucepi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants