Description
In Playground, we are accessing cbimport in a Docker environment that is separated from the backend in Go.
When the credentials (username/password) contain characters with special meaning in bash like `!$`, how can we escape these characters in cbimport?
Example (Relevant parts):
Go Backend
docker exec container /run-code.sh req.cbUser, req.cbPswd, req.cbHost
run-code.sh
!/bin/bash
CB_USER="$1"
CB_PSWD="$2"
CB_HOST="$3"
/opt/couchbase/bin/cbimport json --format list --verbose \
-c "https://${CB_HOST}:18091" -u "${CB_USER}" -p "${CB_PSWD}" \
-b "${BUCKET_NAME}" \
--scope-collection-exp "_default.${COLLECTION_NAME}" \
-g %${KEY}% \
-d ${FILE} \
--no-ssl-verify
Username/Password:
Some#sf31u!$@#^#%@$