i know if i make alias earlier, i could put this alias defination in /etc/profile, but now i have no choice, since some build operation is just on progress. i can use alias wget=’wget -c’ on new bash, but it not works for the bash that is now in build operation, so is there any method that can make alias work for other opened bash?
maybe i can move /usr/bin/wget to /usr/bin/tmp/wget, and then create an sh file on /usr/bin/wget
and the content of this file is /usr/bin/tmp/wget $1
this works especially when there is only one variable, but if there are 2 or more variables, how can this script work?
or is there any better ways to make alias work, or other method which can make the same effect, just like that sh file(how to make change to this file to make it support more variables?)
You can use
"$@"instead of$1which will copy all args, not just the first one.