Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <011301c04991$d6d2d200$20acfea9@sto.zaz.com.br> From: "Keyser Soze" To: References: <008f01c048fb$f3198120$e6fefea9 AT sto DOT zaz DOT com DOT br> <200011072121 DOT QAA12924 AT envy DOT delorie DOT com> Subject: Re: Newbie half off topic: '*' substituted by 'c' Date: Wed, 8 Nov 2000 12:38:38 -0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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" Para: Cc: 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 AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com