mirror of
https://github.com/jarun/nnn.git
synced 2024-09-11 04:55:25 +03:00
fix nu quitcd: switched quotes (#1737)
Closes: https://github.com/jarun/nnn/issues/1736
This commit is contained in:
parent
3176eaa85c
commit
afe84862ff
@ -7,7 +7,8 @@ def-env n [...x] {
|
||||
^nnn ($x | str join)
|
||||
let newpath = (
|
||||
if ($env.NNN_TMPFILE | path exists) {
|
||||
let newpath = (open $env.NNN_TMPFILE | parse 'cd "{nnnpath}"').0.nnnpath
|
||||
# FIXME: fails if path contains single-quote
|
||||
let newpath = (open $env.NNN_TMPFILE | parse "cd '{nnnpath}'").0.nnnpath
|
||||
^rm -f $env.NNN_TMPFILE
|
||||
echo $newpath
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user