What is the best practice when storing a directory in a file name on a unix system? Should the directory path end in a slash?
Method A
TMP="/tmp/pasteTmp/"
which allows you to do:
cd "$TMP$fileName"
Method B
TMP="/tmp/pasteTmp"
which allows you to do (with an extra slash which seems less clean):
cd "$TMP/$fileName"
but also allows you to do:
cd "$TMP/actualFileName"
Which I think is impossible using the first method.