[PATCH v2 5/7] builtins/test: Document that file expressions act on the
From:
Gioele Barabucci
Subject:
[PATCH v2 5/7] builtins/test: Document that file expressions act on the symlink target
Date:
Mon, 22 Sep 2025 16:19:07 +0200
From: Matthias Klose <doko@debian.org>
This addition to the documentation has been shipped in Debian's bash
since version 3.0-8.
---
builtins/test.def | 3 +++
1 file changed, 3 insertions(+)
diff --git a/builtins/test.def b/builtins/test.def
index da7870c7..b6d5b81f 100644
--- a/builtins/test.def
+++ b/builtins/test.def
@@ -64,6 +64,9 @@ File operators:
FILE1 -ef FILE2 True if file1 is a hard link to file2.
+All file operators except -h and -L are acting on the target of a symbolic
+link, not on the symlink itself, if FILE is a symbolic link.
+
String operators:
-z STRING True if string is empty.
--
2.51.0