Newbie half off topic: '*' substituted by 'c'
Keyser Soze
keysers@terra.com.br
Wed Nov 8 06:41:00 GMT 2000
And there's no way to make it accept * instead of '*' ?
I compiled it in Turbo C++ and it works with *
Keyser Soze
-----Mensagem Original-----
De: "DJ Delorie" <dj@delorie.com>
Para: <keysers@terra.com.br>
Cc: <cygwin@sourceware.cygnus.com>
Enviada em: Terça-feira, 7 de Novembro de 2000 19:21
Assunto: Re: Newbie half off topic: '*' substituted by 'c'
>
> > 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
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list