How do I pass in the asterisk character '*' in bash as arguments to my C program?
        Posted  
        
            by Yz Chong
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Yz Chong
        
        
        
        Published on 2010-05-03T02:05:10Z
        Indexed on 
            2010/05/03
            2:08 UTC
        
        
        Read the original article
        Hit count: 344
        
c
Let's say I have a C program, and I run it from bash:
$ ./a.out 123 *
The program would output all the command line arguments, but it will show these instead:
Argument 1: 123 Argument 2: a.out
What can I do in my program to fix this?
© Stack Overflow or respective owner