From: "David Eason" <[EMAIL PROTECTED]>
> A little background on my question.
> 
> Basically I want people to be able to say something like
>   prog page*.html morebookmarks.html
> 
> For Unix users, I want to be lazy and have the shell glob that for me.
> For Windows users, I want to be lazy and have the perl function glob
> that for me.
> 
> Q1. Could the redundant perl glob be harmful to files that have
> already been shell globbed in Unix?

Yes.
Keep in mind that under Unix filenames may contain ANY character. 
Including the asterisks and questionmarks.
Also the spaces in the filenames will confuse glob().
 
> Q2. If bash globs page*.html and there are no matching files, is that
> automatically an error even if there are other files are on the
> command line to be processed? Or does bash consider you to be
> specifying zero or more files that match page*.html and silently glob
> it to ''; I have been silently hoping it is the second, but I am not
> sure.

I believe you'll end up with 'page*.html' if there are no matching 
files. I can't test it now under Unix, but that's what I was told.

> Looks like I have to try Jenda's way!

I did not spend the time to write G.pm for nothing. This is one of 
the issues that look easy at the first glance, but are actually hard 
to be done right :-)

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


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

Reply via email to