In bash, how do I expand a wildcard while it’s inside double quotes?

Move the quotes. Just don’t quote the *. Probably also good not to quote the ~.

go() {
  cd ~/"project/entry ${1}"*
}

That being said if this matches more than one thing cd will use the first match and ignore all the other matches.

Leave a Comment

tech