From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079072816025.tru64-unix-managers.marc@archive.invalid> From: Mohan Date: Fri, 10 Sep 1999 19:48:43 +0000 To: tru64-unix-managers Subject: [UPDATE]: Anyway to get the actual command line? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079072816025 Greetings, OK I missed some crucial info. I am trying to write a program that will be used under various shells and users of the program do not know "escaping metacharacters". I actuall got two quick responses, I will summarise later. Thanks in advance and thanks for the reponses. cheers Mohan On Fri, 10 Sep 1999, Mohan wrote: > 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 > >