This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Newbie half off topic: '*' substituted by 'c'
- To: keysers at terra dot com dot br
- Subject: Re: Newbie half off topic: '*' substituted by 'c'
- From: DJ Delorie <dj at delorie dot com>
- Date: Tue, 7 Nov 2000 16:21:21 -0500
- CC: cygwin at sourceware dot cygnus dot com
- References: <008f01c048fb$f3198120$e6fefea9@sto.zaz.com.br>
> I made a simple code to examplify, a calculation program, but when
> you do: "conta 2 * 4" it doesn't do the multiplication, after making
> a printf call to see what argc[2] contains, it appears 'c'. Anyone
> knows what is happening?
The '*' is being treated like a file wildcard. You need to quote it:
conta 2 '*' 4
conta 2 "*" 4
conta 2 \* 4
Try doing "ls -l *" and you'll probably see that the first file listed
is file "c".
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com