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.
More Related Contents:
- Stop shell wildcard character expansion?
- How to skip the for loop when there are no matching files?
- What do double-asterisk (**) wildcards mean?
- List files not matching a pattern?
- What expands to all files in current directory recursively?
- What does the double-asterisk (**) wildcard mean?
- Exclude a string from wildcard search in a shell
- Using SED with wildcard
- Loop over array, preventing wildcard expansion (*)
- Input data to a shell script [closed]
- How to escape single quotes within single quoted strings
- Why does my Bash code fail when I run it with ‘sh’?
- How can I add numbers in a Bash script?
- Getting an “ambiguous redirect” error
- How to append output to the end of a text file
- Piping tail output though grep twice
- Assign string containing null-character (\0) to a variable in Bash
- How do I limit the running time of a BASH script
- Why equal to operator does not work if it is not surrounded by space?
- In bash, is there an equivalent of die “error msg”
- How to zero pad numbers in file names in Bash?
- How do I integrate MSYS2 shell into Visual studio code on Window?
- Switch case with fallthrough?
- How do I get both STDOUT and STDERR to go to the terminal and a log file?
- Extract parameters before last parameter in “$@”
- -bash: __git_ps1: command not found
- Reading lines in a file and avoiding lines with # with Bash
- How to append a string at end of a specific line in a file in bash [duplicate]
- Getting a ‘source: not found’ error when using source in a bash script
- docker entrypoint running bash script gets “permission denied”