aports/testing/visidata/sh-default.patch
2025-05-18 15:01:04 +00:00

14 lines
608 B
Diff

diff --git a/visidata/shell.py b/visidata/shell.py
index ed6d7678..3fee234f 100644
--- a/visidata/shell.py
+++ b/visidata/shell.py
@@ -79,7 +79,7 @@ class ColumnShell(Column):
arg = shlex.quote(str(context[arg[1:]]))
args.append(arg)
- p = subprocess.Popen([os.getenv('SHELL', 'bash'), '-c', shlex.join(args)],
+ p = subprocess.Popen([os.getenv('SHELL', 'sh'), '-c', shlex.join(args)],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return p.communicate()
except Exception as e: