im going a bit ot, bare with me. On Mon, Feb 09, 2009 at 01:47:23PM +0200, Max Waterman wrote:
I only have the one drive (sda) on this computer, so 'sa[abcd]1' only matched one drive. The unexpected bit is that the shell passed on the arg 'as is' when it didn't match any file (IIRC that's different for csh, which I notice you're using).
filename generation (glob) syntax is common to all shell iirc behaviour when globbing does not match varies ksh: will pass the argument unmodified, which i believe is posix. csh: depends on option nonomatch, if set lets the argument unmodified, else (default) will print an error. csh% got light? No Match. bash: has two options that controll globbing default is as ksh failglob: if set prints error, like csh nullglob: if set just ignores the pattern (i.e. replaces it with nothing) zsh: rtfm -- Luca Berra -- bluca@xxxxxxxxxx Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html