Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!ncar!hsdndev!cmcl2!lanl!cochiti.lanl.gov!jlg From: jlg@cochiti.lanl.gov (Jim Giles) Newsgroups: comp.lang.fortran Subject: Re: Command line arguements? Message-ID: <24632@lanl.gov> Date: 29 May 91 21:05:22 GMT References: Sender: news@lanl.gov Organization: Los Alamos National Laboratory Lines: 16 In article , eesnyder@boulder.Colorado.EDU (Eric E. Snyder) writes: |> I need to write a program that takes arguements from the |> command line and passes them to variables with in the program. |> |> eg: |> |> a.out arg1 arg2 .... Yeah. I've always wanted to be able to do this on UNIX (with _any_ language). Unfortunately, the shell trashes the command line before I can have a look at it. I can turn that unsavory behaviour off - which is fine for me, but I can't be sure all the users of my software will turn it off. So, I have to do without a command line and deal with the junk the shell gives me instead. J. Giles