On Thu, 30 Jan 2025, Greg Wooledge wrote: > You need to unalias w3m first. That's the real answer here.
I wrote [[ $(type -t w3m) == "w3m" ]] && unalias w3m w3m() { /usr/bin/w3m -no-cookie -o auto-image=TRUE $@ ; } which I understood is sufficient to unalias the name w3m before defining the function. > POSIX sh only defines "foo()". > "function foo()" is therefore purely a bash extension. I stick to the basic definition of Bash functions. Roger