IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Not sure about that
I agree that Windows does not have a mechanism for special characters, which is why Cygwin works correctly.
In unix you can use wild card characters in names if you escape them.
Consistant behavior requires that unescaped wild cards be expanded and passed to the calling program as arguements. *.whatever in an empty directory expands to null. Either touch is inconsistant with the rest of the usual unix utilities (read broke) or the shell(s) are broke in this instance.
If you forgive broken behaviour because it's been around a long time, then I guess Windows is really OK then, hmmm?

/ducks, snickering, and runs

Hugh
New Pathname Expansion
I think the big difference here is that the Unix shells are responsible for pathname expansion. For instance (in bash on Linux):


sh-2.04$ ls -l DER*pdf
-rw-r--r-- 1 morganek users 9720 Oct 16 2001 DEReport.pdf
sh-2.04$ set -o noglob
sh-2.04$ cp DER*pdf mtestme.pdf
cp: DER*pdf: No such file or directory
sh-2.04$ set +o noglob
sh-2.04$ cp DER*pdf mtestme.pdf
sh-2.04$ ls -l mtestme.pdf
-rw-r--r-- 1 morganek users 9720 Apr 27 11:47 mtestme.pdf
sh-2.04$


What is significant here is that the command, "cp", does not do pathname expansion. The expansion is handled by bash and passed to cp.

On the Windows side, the COMMAND.COM/CMD.EXE shells do not do expansion when parsing input to determine what to load. As an example, the XCOPY.EXE (or .COM--I forget) executable is responsible for expanding wildcards.
-Mike
     Mad bash behaviour - (pwhysall) - (10)
         Re: Mad bash behaviour - (Steve Lowe)
         Hmmm.... some do.. some don't - (hnick)
         Planned insane POSIX bash behaviour - (folkert) - (2)
             Not sure about that - (hnick) - (1)
                 Pathname Expansion - (morganek)
         Not Broken - (morganek) - (2)
             Thanks - (pwhysall) - (1)
                 No it won't - (drewk)
         you can also touch * - (boxley) - (1)
             I can imagine the conversation: - (morganek)

Powered by genetically engineered cyber-goats!
139 ms