[fpc-pascal] Parsing commandline parameters with wildcards on Linux
jonas.maebe at elis.ugent.be
Sun Apr 10 14:30:09 CEST 2011
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.
More information about the fpc-pascal