https://fishshell.com/docs/current/cmds/string-join.html string join -n '/' a b "" d this gives a/b/d.