]> git.plutz.net Git - shellwiki/commitdiff
Squashed 'cgilite/' changes from 364b5f41..6e9a98e1
authorPaul Hänsch <paul@plutz.net>
Fri, 7 Nov 2025 00:47:52 +0000 (01:47 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 7 Nov 2025 00:47:52 +0000 (01:47 +0100)
6e9a98e1 Prefer absolute path when using PWD as _DATA directory (i.e. "$PWD" instead of ".")

git-subtree-dir: cgilite
git-subtree-split: 6e9a98e1f25cbd2d5f5c85e4a9d92ac6fe39f7ed

cgilite.sh

index b2467c335ed55a298651e485ff84143b7dfb23ea..fc7953b93d597242f3c5c86c4608a06afbcf526e 100755 (executable)
@@ -3,7 +3,7 @@
 # This is CGIlite.
 # A collection of posix shell functions for writing CGI scripts.
 
-# Copyright 2017 - 2023 Paul Hänsch
+# Copyright 2017 - 2023, 2025 Paul Hänsch
 # 
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
@@ -44,7 +44,7 @@ esac; done
 unset cgilite_arg
 
 _EXEC="${_EXEC:-${0%/*}}"
-_DATA="${_DATA:-.}"
+_DATA="${_DATA:-${PWD:-.}}"
 _EXEC="${_EXEC%/}" _DATA="${_DATA%/}" _BASE="${_BASE%/}"
 
 export _EXEC _DATA _BASE