Call a shell command from Python
Wildman
best_lay at yahoo.com
Tue Nov 1 10:29:50 EDT 2016
On Tue, 01 Nov 2016 16:23:08 +1100, Ben Finney wrote:
> Wildman via Python-list <python-list at python.org> writes:
>
>> […] in this case grep never "sees" the '$' sign. Bash expands $USER to
>> the actual user name beforehand.
>
> I understand how Bash substitutes variables on the command line.
>
> What I need to repeat, though: In this case, no, Bash doesn't do that
> because Bash isn't getting involved. Grep does in fact see the “$” in
> the command argument, because nothing ever replaces it.
I understand now. Thank you.
--
<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!
More information about the Python-list
mailing list