I have a little question here.
If I have two files, say
mv filea fileb would
Then if I have two directories, say
mv dira dirb would
dirb(it will become
Noting that in both cases there are no notice or message, then this is pretty inconsistent to me. I think
mv dira dirb should just overwrite
dirb with the contents of
dira (or merge the two directories under a directory named
I remember reading somewhere that a directory name with a slash (like
dira/) is treated like a directory, and name with no slash (like
dira) is treated like a file (to certain extents, of course). Anyway now I want to make the shell (zsh and possibly bash) respect my notation of a directory by using a slash. Is there a terminal option which enable me to enforce that?
To clarify, here is my desired behaviour:
mv dira dirbresults in
dirbbeing overwritten with the contents of
mv dira dirb/results in
dirabeing moved into
Has anyone thought the same way as me? Or am I just weird?