You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/11/17 03:37:52 UTC

[GitHub] [dolphinscheduler] zhongjiajie edited a comment on pull request #6782: [fix: #6781] Executing install.sh failed when password and others contain @

zhongjiajie edited a comment 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}
   ```
   
   And  the result is `inputParam`


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org