From c9662f1a7bef8ccb6013dcc2a4a15b58f1d27a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sat, 20 Jan 2024 08:31:22 +0100 Subject: Fix passing filenames starting with - We don't want to pass them as program options. --- sdn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sdn.cpp') diff --git a/sdn.cpp b/sdn.cpp index b8191a8..9496475 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -1,7 +1,7 @@ // // sdn: simple directory navigator // -// Copyright (c) 2017 - 2023, Přemysl Eric Janouch +// Copyright (c) 2017 - 2024, Přemysl Eric Janouch // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted. @@ -917,7 +917,7 @@ fun run_program (initializer_list list, const string &filename) { for (auto program : list) if ((found = program)) break; - g.ext_helper = found + (" " + shell_escape (filename)); + g.ext_helper = found + (" -- " + shell_escape (filename)); g.quitting = true; return; } -- cgit v1.2.3