[PATCH chere 1/4] chere: fix list command

Vadim (vadcx) vad.cygwin@vad.cx
Wed Aug 6 13:54:09 GMT 2025


From: "Vadim (vadcx)" <vad.git@vad.cx>

The variable wasn't expanding due to poor quoting
---
 src/chere | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chere b/src/chere
index b1d27b0..4d9730b 100755
--- a/src/chere
+++ b/src/chere
@@ -740,7 +740,7 @@ read_chere_registry_keys()
 #  PFX - Registry prefix to use for cygwin keys
 list_cygwin_registry_keys()
 {
-  $REGTOOL_ list $1 2> /dev/null | sed -n 's/$PFX\(.*\)/\1/gp'
+  $REGTOOL_ list "$1" 2> /dev/null | sed -n 's/'"$PFX"'\(.*\)/\1/gp'
 }
 
 # Install keys under $1 for shell $2
-- 
2.50.1



More information about the Cygwin-apps mailing list