5

Possible Duplicate:
When should I use a trailing slash on a directory?

Does the slash make any difference?

talloaktrees
  • 153
  • 3
  • @PhilippeBlayo, that is why I _not_ linked to [How linux handles multiple path separators (/home////username///file)](http://unix.stackexchange.com/questions/1910/how-linux-handles-multiple-path-separators-home-username-file). Even if it is closed as duplicate, the question I linked to contains additional information on _trailing_ slashes. – manatwork Jan 02 '13 at 16:49

1 Answers1

9

The slash gets passed on to the command in the parameter. It is up to the command to decide how to interpret it. For information on specific commands, refer to their documentation (Their man pages, other documentation or their source code). (I know rsync handles it differently and ls doesn't, at least not for normal directories)

According to some other questions, POSIX have some standards, but nothing forces utilities to keep to them.

Gert van den Berg
  • 1,491
  • 1
  • 10
  • 19