Take a look at your shell manpage.  I just took a quick look at the bash
manpage, and it allows you to turn off pathname expansion with a -f switch.

So this worked for me:

$ bash -f
$ script.pl file* names*
$ exit

Or as a one liner...

$ bash -fc 'script.pl file* names*'

Rob


-----Original Message-----
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:08 PM
To: Hanson, Robert; Nikola Janceski; Beginners (E-mail)
Subject: RE: command line arguments


I was hoping for some way to capture it in perl instead with out having to
change the command line arguments.

-----Original Message-----
From: Hanson, Robert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:05 PM
To: 'Nikola Janceski'; Beginners (E-mail)
Subject: RE: command line arguments


You should be able to just escape the *.  Single quoting them should also
work.

script.pl file\* names\*
script.pl 'file*' 'names*'

Rob

-----Original Message-----
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 5:03 PM
To: Beginners (E-mail)
Subject: command line arguments


Is there a way to get the command line arguments before they are expanded by
the shell?

script.pl file* names*

I want to get the file* and not the expanded list of file1 file2 file3 file4
etc.

I know I can put it in quotes but is there any other way around it?

Delivery Queue
<http://www/reldist-bin/build/assign/listassign.cgi?reverse=on>

Nikola Janceski
Summit Systems, Inc.
212-896-3400

A wise man will make more opportunities than he finds.
-- Francis Bacon 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to