Suppose I have variables dir
and file
containing strings representing a directory and a filename, respectively . What is the proper way in emacs lisp to join them into a full path to the file?
For example, if dir
is "/usr/bin"
and file
is "ls"
, then I want "/usr/bin/ls"
. But if instead dir
is "/usr/bin/"
, I still want the same thing, with no repeated slash.