Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: File name substitution - perl-3.0 pl8 on Sun4 OS4 Message-ID: <6681@jpl-devvax.JPL.NASA.GOV> Date: 28 Dec 89 00:53:40 GMT References: <3142@taux01.UUCP> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 39 In article <3142@taux01.UUCP> crehta@taux01.nsc.com (Ran Ever-Hadani) writes: : The following problem occurs under a SunOS 4.0.3c, on a SPARCstation 1. : : Script started on Tue Dec 26 11:29:04 1989 : tasu74 % cat try : #!/users/c764/crehta/perl : : while (<*.c>) { : print $_,"\n"; : } : : tasu74 % ls -F : a.c b.c c.c try* typescript : tasu74 % try : *.c: Ambiguous. : tasu74 % ^D : script done on Tue Dec 26 11:29:39 1989 : : The same "try" perl script listed a.c, b.c and c.c correctly on : a Sun3 under OS 3.5 . Are you running with a non-standard csh? I can't reproduce it on my SPARCstation. It acts like *.c is being fed to some csh command that only expects one argument, such a 'cd'. In evalargs.xc, you should have some lines that read: #ifdef CSH str_nset(tmpstr,cshname,cshlen); str_cat(tmpstr," -cf 'set nonomatch; glob "); str_scat(tmpstr,str); str_cat(tmpstr,"'|"); #else Check for corruption in your copy. You might do printf("%s",tmpstr->str_ptr); to find out what it's trying to execute. Larry