From cad59d9654758f98ceb62a92f462d9b02fbcd59a Mon Sep 17 00:00:00 2001 From: valoq Date: Thu, 23 Apr 2026 11:04:02 +0200 Subject: [PATCH] fix: disable pathname expansion in `lfrc.example` (#2544) --- etc/lfrc.example | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/lfrc.example b/etc/lfrc.example index b50f28d4..5bae9aa1 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -42,6 +42,7 @@ map O $mimeopen --ask "$f" # use either file extensions and/or mime types here. Below uses an editor for # text files and a file opener for the rest. cmd open &{{ + set -f case $(file --mime-type -Lb "$f") in text/*) lf -remote "send $id \$$EDITOR \$fx";; *) for f in $fx; do $OPENER "$f" > /dev/null 2> /dev/null & done;;