A colon in a filename

Well, it’s silly to blog about, but anyway..

From the department “You’re never to old to learn” comes today something about colons in filenames. Somehow a colon (:) is seen as a directory separator ‘/’. I’m using bash on Red Hat as shell, so no clue whether it’s same in other shell (and I don’t bother really).

I guess it’s the path-separator playing tricks, or it should be documented somewhere. Let me know!

Having a directory named ~/cluster/: $ touch ~/cluster:foo $ ls ~/cluster:

And you see the content of directory ~/cluster/.

(btw, I made the mistake making a typo in ‘scp foo.ini user@server:cluster:foo.ini’)