I tried to to run echo ${@:$#}
and it echoes my current shell.
I found out that echo ${#}
echoes 0.
I didn't find any resources about the results.
I am trying to understand that part so I can understand a docker script that I want to use. The script is:
alias enhance='function ne() { docker run --rm -v "$(pwd)/`dirname ${@:$#}`":/ne/input -it alexjc/neural-enhance ${@:1:$#-1} "input/`basename ${@:$#}`"; }; ne'
function
keyword at all -- see both entries in the first and last tables in https://wiki.bash-hackers.org/scripting/obsolete; thus, it's better justne() { docker run ...; }
, and that'll define ane
you can run as-is; noalias
, nofunction
). – Charles Duffy Mar 06 '21 at 15:16