[Chicago-talk] shell expansion
Emil Janev
ejanev2 at yahoo.com
Wed Nov 5 17:35:35 CST 2003
Here is a question about small problem ( I think ) with shell expansion
under Windows.
Under UNIX the following would work naturally:
perl -l -e 'print for @ARGV' *
Everything that could be expanded with "echo *" from the current
directory will be printed.
Under Windows:
C:\Temp>perl -l -e "print for @ARGV" *
It will print just "*". ( echo * yields the same too ).
I used some technique to have the desired under Windows: Imediatelly at
the begining of the program:
@ARGV = <@ARGV>;
This basically works, but the same script want be portable to UNIX.
Any sugestion...
Emil
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
More information about the Chicago-talk
mailing list