File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Strange output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Strange output" Watch "Strange output" New topic

Strange output

Pash Sonar

Joined: Jul 15, 2003
Posts: 6
Hi Folks,

I have received very strange output when I executed following program with different arguments. Kindly have a look at below.

When executed the above program with
1) java Test *
Output :- It lists all the files from current directory.

2) java Test &
Output :-
args.length :0
It doesn't accept & as an argument.

3) java Test ^
Output :-
Content 0:

args.length :1

Can somebody explain why is it so?

Thanks and best regards,
Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
assumed you ran this from a unix shell
the "&" means "Run this task in background"

The ^ has a meaning as well i think, but i don't know which -grin-

I agree. Here's the link:
subject: Strange output