Full command line as it was typed

You’re too late. By the time that the typed command gets to Python your shell has already worked its magic. For example, quotes get consumed (as you’ve noticed), variables get interpolated, etc.

Leave a Comment