From 6fc53c4c2135ce1b246577ce7fe1a32aab26c01c Mon Sep 17 00:00:00 2001 From: dschmenk Date: Sun, 19 Mar 2023 13:57:13 -0700 Subject: [PATCH] Make '=' shorthand for destionation being current directory --- src/utilsrc/apple/copy.pla | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utilsrc/apple/copy.pla b/src/utilsrc/apple/copy.pla index ea16d30..6e327ca 100644 --- a/src/utilsrc/apple/copy.pla +++ b/src/utilsrc/apple/copy.pla @@ -217,6 +217,9 @@ if not except(exit) pathcpy(@dstpath, arg) arg = argNext(arg) loop + if dstpath[0] == 1 and dstpath[1] == '=' + fileio:getpfx(@dstpath) + fin if not chkdstpath(@dstpath) and (srccnt > 1 or isWildName(srcfilelist)) puts("Destination must be a directory: "); puts(@dstpath); putln return