From af7af923366fe116019e50785e56def172a6a1ab Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 15 Jul 2022 16:42:53 -0400 Subject: =?UTF-8?q?Change=20=E2=80=A2file.At=20to=20not=20resolve=20?= =?UTF-8?q?=F0=9D=95=A8=20in=20JS=20and=20spec,=20matching=20CBQN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bqn.js | 4 ++-- docs/spec/system.html | 2 +- gendocs | 2 +- spec/system.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bqn.js b/bqn.js index 0a1aff82..d67f4b0f 100755 --- a/bqn.js +++ b/bqn.js @@ -44,8 +44,8 @@ sysvals.file = dynsys(state => { // Paths and parsing path: p, at: (x,w) => { - let e="•file.At", f=res(e)(has(w)?w:x); - return str(has(w)?path.resolve(f,req1str(e,x)):f); + let e="•file.At"; + return str(has(w)?path.join(req1str(e,w),req1str(e,x)):res(e)(x)); }, name: (x,w) => str(path.basename(req1str("•file.Name",x,w))), extension: (x,w) => str(path.extname (req1str("•file.Extension",x,w))), diff --git a/docs/spec/system.html b/docs/spec/system.html index 67af11c2..fadf914b 100644 --- a/docs/spec/system.html +++ b/docs/spec/system.html @@ -176,7 +176,7 @@ At -Absolute path of file, with optional base 𝕨 +Join base path 𝕨, or •path if not given, to 𝕩 Name diff --git a/gendocs b/gendocs index 559d4f5b..9faefb68 100755 --- a/gendocs +++ b/gendocs @@ -6,6 +6,6 @@ files ← { 0<≠•args ? •args ; # All markdown files in directories corresponding to ones in docs/ At‿List‿Type ← •file SubDirs ← { 𝕩 <⊸∾ ∾ 𝕊¨ ('d'=Type¨)⊸/ 𝕩⊸At¨ List 𝕩 } - ∾ (