Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange output

 
Pash Sonar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :-
Nothing!
args.length :0
It doesn't accept & as an argument.

3) java Test ^
Output :-
More?
More?
Content 0:

args.length :1

Can somebody explain why is it so?

Thanks and best regards,
SSEEFolk
 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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-

J.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic