# mount -t tmpfs -o size=1G,nr_inodes=10k,mode=0700 tmpfs /space
Don’t have basename or dirname?
Don’t want to start another process every time you need a path?
Not a problem.
dirname == ${path%/*}
basename == ${path##*/}