digitalmars.D - Re: std.path.getName(): Screwy by design?
- Jesse Phillips <jessekphillips+D gmail.com> Mar 01 2011
- "Nick Sabalausky" <a a.a> Mar 01 2011
- Jonathan M Davis <jmdavisProg gmx.com> Mar 01 2011
- "Nick Sabalausky" <a a.a> Mar 01 2011
- Bekenn <leaveme alone.com> Mar 01 2011
- "Nick Sabalausky" <a a.a> Mar 01 2011
- Jonathan M Davis <jmdavisProg gmx.com> Mar 01 2011
Daniel Gibson Wrote:.bashrc doesn't have an extension and is not an extionsion either. The "." at the start is Unix convention to say "this is a hidden file/folder", this means "ls" (the unix equivalent to "dir") doesn't
I don't like this description, it is a configuration file which just so happens to have the convention of not being shown. Linux doesn't have "hidden" files. But I agree that is the name of the file and not the extension. I'm not sure if it matters how the library actually deals with it. What scares me is calling getName on it would return: assert("/home/user/.bashrc" == "/home/user/"); How am I supposed to interpret that, it is a directory, what happens when I call getName again? I think the behavior for getName is different in Linux then in Windows. And in Windows I have added extensions to a file so a could get the file name (use getBaseName or whatever it is called, with getName.) So I agree with every thing Nick has said.list them (ls -a does, though) and most file browsers only list them when you select something like "show hidden files" or "show dot files". Cheers, - Daniel
Mar 01 2011
"Jesse Phillips" <jessekphillips+D gmail.com> wrote in message news:ikj3nf$1l0v$1 digitalmars.com...Daniel Gibson Wrote:.bashrc doesn't have an extension and is not an extionsion either. The "." at the start is Unix convention to say "this is a hidden file/folder", this means "ls" (the unix equivalent to "dir") doesn't
I don't like this description, it is a configuration file which just so happens to have the convention of not being shown.
That's the exact same thing. "not being shown" == "hidden" What else could "not being shown" mean, if not "hidden"? Obstructed view?Linux doesn't have "hidden" files.
That's just like saying "Windows doesn't have hidden files, it just has some files with a flag that happen to have the convention of not being shown". Six of one, half-dozen of the other. I'm not a fan of duck typing, but if it walks like a duck, quacks like a duck and has the DNA of a duck...it certainly ain't no elephant.
Mar 01 2011
On Tuesday, March 01, 2011 14:27:38 Nick Sabalausky wrote:"Jesse Phillips" <jessekphillips+D gmail.com> wrote in message news:ikj3nf$1l0v$1 digitalmars.com...Daniel Gibson Wrote:.bashrc doesn't have an extension and is not an extionsion either. The "." at the start is Unix convention to say "this is a hidden file/folder", this means "ls" (the unix equivalent to "dir") doesn't
I don't like this description, it is a configuration file which just so happens to have the convention of not being shown.
That's the exact same thing. "not being shown" == "hidden" What else could "not being shown" mean, if not "hidden"? Obstructed view?Linux doesn't have "hidden" files.
That's just like saying "Windows doesn't have hidden files, it just has some files with a flag that happen to have the convention of not being shown". Six of one, half-dozen of the other. I'm not a fan of duck typing, but if it walks like a duck, quacks like a duck and has the DNA of a duck...it certainly ain't no elephant.
No. It's a cat. :) - Jonathan M Davis P.S. At least it is if you've seen B5...
Mar 01 2011
"Jonathan M Davis" <jmdavisProg gmx.com> wrote in message news:mailman.2104.1299019810.4748.digitalmars-d puremagic.com...On Tuesday, March 01, 2011 14:27:38 Nick Sabalausky wrote:"Jesse Phillips" <jessekphillips+D gmail.com> wrote in message news:ikj3nf$1l0v$1 digitalmars.com...Daniel Gibson Wrote:.bashrc doesn't have an extension and is not an extionsion either. The "." at the start is Unix convention to say "this is a hidden file/folder", this means "ls" (the unix equivalent to "dir") doesn't
I don't like this description, it is a configuration file which just so happens to have the convention of not being shown.
That's the exact same thing. "not being shown" == "hidden" What else could "not being shown" mean, if not "hidden"? Obstructed view?Linux doesn't have "hidden" files.
That's just like saying "Windows doesn't have hidden files, it just has some files with a flag that happen to have the convention of not being shown". Six of one, half-dozen of the other. I'm not a fan of duck typing, but if it walks like a duck, quacks like a duck and has the DNA of a duck...it certainly ain't no elephant.
No. It's a cat. :) - Jonathan M Davis P.S. At least it is if you've seen B5...
OMG, I completely forgot about the whole cat thing in Babylon 5 (I assume you mean Babylon 5). It's been far too long. Actually, I still haven't gotten any further then about halfway through season 4. I really need to finish that sometime. Wait, are you sure that wasn't Andromeda?
Mar 01 2011
On 3/1/11 2:56 PM, Nick Sabalausky wrote:"Jonathan M Davis"<jmdavisProg gmx.com> wrote in messageNo. It's a cat. :) - Jonathan M Davis P.S. At least it is if you've seen B5...
OMG, I completely forgot about the whole cat thing in Babylon 5 (I assume you mean Babylon 5). It's been far too long. Actually, I still haven't gotten any further then about halfway through season 4. I really need to finish that sometime. Wait, are you sure that wasn't Andromeda?
Definitely Babylon 5. Brilliant show, despite some unfortunate dialogue here and there (of which "being nibbled to death by cats" is *not* an example).
Mar 01 2011
"Bekenn" <leaveme alone.com> wrote in message news:ikk0ko$a2u$1 digitalmars.com...On 3/1/11 2:56 PM, Nick Sabalausky wrote:"Jonathan M Davis"<jmdavisProg gmx.com> wrote in messageNo. It's a cat. :) - Jonathan M Davis P.S. At least it is if you've seen B5...
OMG, I completely forgot about the whole cat thing in Babylon 5 (I assume you mean Babylon 5). It's been far too long. Actually, I still haven't gotten any further then about halfway through season 4. I really need to finish that sometime. Wait, are you sure that wasn't Andromeda?
Definitely Babylon 5. Brilliant show, despite some unfortunate dialogue here and there (of which "being nibbled to death by cats" is *not* an example).
Oh, geez, I had *really* forgotten about that, I even had to google it and watch a clip before I finally remembered. What I was thinking of was on some other scifi show (I think Andromeda) there's a thing about cats being extinct, but every once in a while one will just appear on the ship anyway (which obviously has no connection to ducks, though).
Mar 01 2011
On Tuesday, March 01, 2011 14:56:20 Nick Sabalausky wrote:"Jonathan M Davis" <jmdavisProg gmx.com> wrote in message news:mailman.2104.1299019810.4748.digitalmars-d puremagic.com...On Tuesday, March 01, 2011 14:27:38 Nick Sabalausky wrote:"Jesse Phillips" <jessekphillips+D gmail.com> wrote in message news:ikj3nf$1l0v$1 digitalmars.com...Daniel Gibson Wrote:.bashrc doesn't have an extension and is not an extionsion either. The "." at the start is Unix convention to say "this is a hidden file/folder", this means "ls" (the unix equivalent to "dir") doesn't
I don't like this description, it is a configuration file which just so happens to have the convention of not being shown.
That's the exact same thing. "not being shown" == "hidden" What else could "not being shown" mean, if not "hidden"? Obstructed view?Linux doesn't have "hidden" files.
That's just like saying "Windows doesn't have hidden files, it just has some files with a flag that happen to have the convention of not being shown". Six of one, half-dozen of the other. I'm not a fan of duck typing, but if it walks like a duck, quacks like a duck and has the DNA of a duck...it certainly ain't no elephant.
No. It's a cat. :) - Jonathan M Davis P.S. At least it is if you've seen B5...
OMG, I completely forgot about the whole cat thing in Babylon 5 (I assume you mean Babylon 5). It's been far too long. Actually, I still haven't gotten any further then about halfway through season 4. I really need to finish that sometime. Wait, are you sure that wasn't Andromeda?
No. It was Babylon 5. Londo couldn't remember the word for duck and described the animal to Vir. And Vir thought that the animal was called a cat (and Londo agreed with him). So, instead of talking about being nibbled to death by ducks, Londo says that it's like being nibbled to death by cats... - Jonathan M Davis
Mar 01 2011