On 10 Apr 2011, at 14:15, Sven Barth wrote:

> On 10.04.2011 13:45, David W Noon wrote:
>> 
>> A program can open /proc/self/cmdline as a text file, and retrieve its
>> command line to re-parse it for itself.
> 
> Quick test: this does also contain the already extended command line.

And the reason is that wildcard expansion is performed by the shell. The shell 
then execute the program using the expanded command line. /proc/self/cmdline is 
a virtual file exposed by the kernel containing the command line parameters it 
received. The kernel obviously has no clue about what the shell did or did not 
do.



Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to