Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!caen!uflorida!travis!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.unix.programmer Subject: Getting the original command-line Summary: How do I do it? Message-ID: <1699@travis.csd.harris.com> Date: 7 Dec 90 14:18:10 GMT Sender: news@travis.csd.harris.com Organization: Harris Computers Systems Division, Fort Lauderdale,FL Lines: 16 Is there a way in Unix (BSD and/or AT&T) to retrieve the original command-line in a C program? If so, what state will it be in? (Will variables and aliases be expanded, what about quotes and backslashes, etc ..) Also - does the shell being used make a difference in how the command-line is retrieved? BTW - I really do NOT want argv in this particular case. I want the orignal command-line, hopefully before quotes and slashes are evaluated but after filenames, aliases, and variables have been expanded. advTHANXance ______________________ "And miles to go before I sleep." ______________________ Brad Appleton brad@ssd.csd.harris.com Harris Computer Systems uunet!hcx1!brad Fort Lauderdale, FL USA ~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~