Ethereal-dev: Re: [Ethereal-dev] [Patch] Support for wildcards in mergecap

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 14 Nov 2004 13:17:30 -0800
Francisco Alcoba (TS/EEM) wrote:

Windows command line does not support wildcards in arguments by itself,
it just hands them over as text.

And the C startup code for command-line utilities doesn't expand them either?

The page at

	http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/basic_24.asp

says

	Wildcard Expansion

	Microsoft Specific

You can use wildcards the question mark (?) and asterisk (*) to specify filename and path arguments on the command line.

Command-line arguments are handled by a routine called _setargv. By default, _setargv expands wildcards into separate strings in the argv string array. If no matches are found for the wildcard argument, the argument is passed literally.

"If no matches are found for the wildcard argument, the argument is passed literally" is the same behavior that you get with the Bourne shell and Bourne-compatible shells on UN*X.