Anyway to get the actual command line?

From: Mohan <mkannapa_at_ford.com>
Date: Fri, 10 Sep 1999 15:23:00 -0400 (EDT)

Greetings,
  I have a simple question, is there a way to get the
  original unmodified command line in a program w/o
  any shell expansion etc?

  I.e say if i have my own "mcp" program and if i type in:
  
  $ mcp *.c xyz

  if there a way to get
   argv[0]="mcp"
   argv[1]="*.c"
   argv[2]="xyz"

  instead of
   argv[0]="mcp"
   argv[1]="xx.c"
   argv[2]="xxx.c"
   ...
   argv[last]="xyz"

  I know this iis probably not possible, thought I would give it
  a shot.

  Thanks
  Mohan
Received on Fri Sep 10 1999 - 19:25:43 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT