From daba5fdbcd20d5101bdf4e7263fbff0506775b43 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 25 Nov 2025 12:52:39 +0100 Subject: [PATCH] fish_delta: acknowledge workaround for no-stdin-in-cmdsub --- share/functions/fish_delta.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/functions/fish_delta.fish b/share/functions/fish_delta.fish index 4fc4389d7..6198e8f1c 100644 --- a/share/functions/fish_delta.fish +++ b/share/functions/fish_delta.fish @@ -132,7 +132,9 @@ function fish_delta end end function __fish_delta_diff_maybe_file -a maybe_default_file - set -l tmpfile (mktemp) + # TODO Use "set -l foo (cat)" instead of the temp file. + # https://github.com/fish-shell/fish-shell/issues/206 + set -l tmpfile (__fish_mktemp_relative fish-delta) cat $maybe_default_file >$tmpfile __fish_delta_diff $tmpfile command rm $tmpfile