Why do Automator workflows fail to replace selected text with their actions’ output in Safari 14 (on macOS 11)?
# define a wrapper:
$ myfun() { ./somescript.sh "$1" "smart_${2//-/_}"; }
# call it
$ myfun file-script-test wa-foo-go
# define a wrapper:
$ myfun() { ./somescript.sh "$1" "smart_${2//-/_}"; }
# call it
$ myfun file-script-test wa-foo-go