On Wed 2009-07-08 12:35:46 UTC-0700, Sudipta Deb ([email protected]) wrote:
> I have a very simple C program which will run in UNIX. When i am > passing * as the command line argument, i am gettig the below output. This is known as "globbing". Your UNIX shell (usually bash, csh or tcsh) is expanding the * pattern to filenames and passing those names to your program as command-line arguments. This is normal behaviour. http://en.wikipedia.org/wiki/Glob_(programming) If you want to pass the * character as an argument to your program, rather than have it expanded by the shell, you can use either: ./myprog \* ./myprog '*' ./myprog "*" ... depending on your personal preference.
