Skip to content

Commit 2967a2c

Browse files
committed
FIX: don't allow function! as a path argument of the CD function
1 parent c6cc589 commit 2967a2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mezz/mezz-shell.r

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cd: func [
2929
word! path! [
3030
change-dir either all [
3131
not error? set/any 'val try [get :path]
32+
not function? :val
3233
val
3334
][ val ][ to-file path ]
3435
]

0 commit comments

Comments
 (0)