zhongjiajie commented on pull request #6782:
URL: https://github.com/apache/dolphinscheduler/pull/6782#issuecomment-971144661


   It seem function do not work in my env. I use ]
   *OS: mac
   * Bash: GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin19.6.0)
   
   ```shell
   function charEscape(){
       inputParam=$1
       echo ${inputParam}
       if [[ $1 =~ '@' ]]; then
           tmp=$(echo inputParam | sed "s/@/\\\\@/g")
           inputParam=${tmp}
       fi
       echo "$inputParam"
   }
   
   input="abc@123"
   input=$(charEscape ${input})
   echo ${input}
   ```


-- 
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