On 12/12/11 3:53 PM, Sean Conner wrote:
It was thus said that the Great Toby Thain once
stated:
The representation that Unix uses is effective
for these use cases. Can
you give an actual example of where Unix handles extensions "very
poorly"? (Your faux-DOS command doesn't seem to qualify, as it is
neither about Unix (rather, shell), nor a valid use of mv.)
Well, it depends upon your definition of "Unix". There are certain
commands I've come across that handles extentions poorly. Like gunzip:
[spc]lucy:/tmp>mv x-grey.tar.gz x-grey.tar.foo
[spc]lucy:/tmp>gunzip x-grey.tar.foo
gunzip: x-grey.tar.foo: unknown suffix -- ignored
[spc]lucy:/tmp>
And GCC also has trouble with extentions:
[spc]lucy:/tmp>cp hello.c hello.foo
[spc]lucy:/tmp>gcc hello.foo
hello.foo: file not recognized: File format not recognized
collect2: ld returned 1 exit status
[spc]lucy:/tmp>gcc hello.c
[spc]lucy:/tmp>
Those are the only ones that I can name off the top of my head, but it's
still annoying (especially the gunzip one).
Errr... again, these are *programs*, not Unix...
--Toby
-spc (Only recently learned about libmagic ... )