From 4e3be1144e16d7af088c58907d0407cb7c3ed040 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 15 May 2025 06:11:41 -0300 Subject: etc/sh/rc(idiff): Do not call less(1) if output is empty --- etc/sh/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/sh/rc b/etc/sh/rc index 96e61ae..340ab62 100644 --- a/etc/sh/rc +++ b/etc/sh/rc @@ -438,7 +438,7 @@ f() { } idiff() { - diff -U10 --color=always "$1" "$2" | less + diff -U10 --color=always "$1" "$2" | ifne less -R } -- cgit v1.2.3