in reply to Re^4: Catch the exact command line including the quotation marks and so on
in thread Catch the exact command line including the quotation marks and so on

Perl is called by the shell. The shell does preprocess the arguments (as you already observed), and hands only the already preprocessed arguments over to Perl, so Perl has no chance.

You might try reading from ~/.bash_history, but that won't work with other shells…


  • Comment on Re^5: Catch the exact command line including the quotation marks and so on