I'd like to pass input from a shell command over to a python script in an alias that uses a shell command.
import sys print(sys.argv)
alias foo='echo $(python test.py $1)'
$ python cd_alias_test.py hello would print all the args:
I'd expect this alias to do the same. However its stdout is
Which means that the input string is being passed to stdin and not the script's arguments.
How I achieve the intended effect?