delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/07/16:24:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 7 Nov 2000 16:21:21 -0500
Message-Id: <200011072121.QAA12924@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: keysers AT terra DOT com DOT br
CC: cygwin AT sourceware DOT cygnus DOT com
In-reply-to: <008f01c048fb$f3198120$e6fefea9@sto.zaz.com.br>
(keysers AT terra DOT com DOT br)
Subject: Re: Newbie half off topic: '*' substituted by 'c'
References: <008f01c048fb$f3198120$e6fefea9 AT sto DOT zaz DOT com DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019