nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit afe84862ffa47a8be58b704980f1d161af086d0e
parent 3176eaa85cf4ad4ac1518f400ea0702fce296381
Author: J-Kappes <87168492+J-Kappes@users.noreply.github.com>
Date:   Sat, 30 Sep 2023 18:19:01 +0200

fix nu quitcd: switched quotes (#1737)

Closes: https://github.com/jarun/nnn/issues/1736
Diffstat:
Mmisc/quitcd/quitcd.nu | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/misc/quitcd/quitcd.nu b/misc/quitcd/quitcd.nu @@ -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 {