If pathname is omitted, the current path being recorded is displayed. If pathname is given, the currently recorded path is saved to the variable specified by pathname. The direction character (.) is prepended to the variable name automatically.