public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcj reading stdin gets leading "?" character
@ 2003-09-09 16:12 David Van Horn
  2003-09-10  0:33 ` David Van Horn
  0 siblings, 1 reply; 2+ messages in thread
From: David Van Horn @ 2003-09-09 16:12 UTC (permalink / raw)
  To: gcc-help

I fear this may be a FAQ, but I can't find it...

public class ekko {
     public static void main (String[] args) {
         for (int i = 0; i < args.length; i++)
             System.out.println( args[i] );
     }
}

gcj --main=ekko ekko.java -o ekko

./ekko this
?this

How do I get rid of this leading question mark?

TIA

-d

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcj reading stdin gets leading "?" character
  2003-09-09 16:12 gcj reading stdin gets leading "?" character David Van Horn
@ 2003-09-10  0:33 ` David Van Horn
  0 siblings, 0 replies; 2+ messages in thread
From: David Van Horn @ 2003-09-10  0:33 UTC (permalink / raw)
  To: gcc-help

Perhaps this is a bug(?)  I received an email that this works fine gcj with

gcj version 2.96
Linux 2.4.7 / RedHat 7.2 / i686

I'm using gcj version 3.2.2 with SunOS 5.8 on a sparc chip.

(Also it's worth noting that "./ekko this that" produces
?this
that)

Thanks.

-d

David Van Horn wrote:
> I fear this may be a FAQ, but I can't find it...
> 
> public class ekko {
>     public static void main (String[] args) {
>         for (int i = 0; i < args.length; i++)
>             System.out.println( args[i] );
>     }
> }
> 
> gcj --main=ekko ekko.java -o ekko
> 
> ./ekko this
> ?this
> 
> How do I get rid of this leading question mark?
> 
> TIA
> 
> -d
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-10  0:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 16:12 gcj reading stdin gets leading "?" character David Van Horn
2003-09-10  0:33 ` David Van Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).