Radeity opened a new issue, #13929:
URL: https://github.com/apache/dolphinscheduler/issues/13929

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Set commend like this:
   <img width="572" alt="image" 
src="https://user-images.githubusercontent.com/45198818/232316881-0a0afdf4-c25a-4c9c-8511-a0031b03e202.png";>
   
   After regex matching, we generate command list: `["perl",  "-Mbignum=bpi", 
"-wle", "'print bpi(2000)'"]`
   If we use double " and single ' quotes at the same time like above, the 
array of this yaml will be parsed to:
   ```
     - command:
       - perl
       - -Mbignum=bpi
       - -wle
       - '''print bpi(2000)'''
   ```
   Then, we will get error log of pod: `Useless use of a constant ("print 
bpi(2000)") in void context at -e line 1.`
   
   ### What you expected to happen
   
   we should get a list of String without single quote in any element, in this 
example, it should be `["perl",  "-Mbignum=bpi", "-wle", "print bpi(2000)"]`.
   
   ### How to reproduce
   
   Try to set command with single quote.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to