How to pass all arguments of a function along to another command?
13
votes
3
answers
27827
views
Hello I have this in my
~/.bash_profile
export GOPATH="$HOME/go_projects"
export GOBIN="$GOPATH/bin"
program(){
$GOBIN/program $1
}
so I'm able to do program "-p hello_world -tSu"
. Is there any way to run the program and custom flags without using the quotation marks? if I do just program -p hello_world -tSu
it'll only use the -p
flag and everything after the space will be ignored.
Asked by nooby
(141 rep)
Nov 23, 2020, 12:21 PM
Last activity: May 2, 2023, 10:46 PM
Last activity: May 2, 2023, 10:46 PM