From 6e6c5f7e99284fcef087487c6414b4aaf8b15562 Mon Sep 17 00:00:00 2001
From: Vitaly Lipatov <lav@etersoft.ru>
Date: Sat, 22 Jul 2023 04:30:52 +0300
Subject: [PATCH] add tests/test_which.sh

---
 tests/test_which.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100755 tests/test_which.sh

diff --git a/tests/test_which.sh b/tests/test_which.sh
new file mode 100755
index 00000000..ae0820c7
--- /dev/null
+++ b/tests/test_which.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# support for direct run a play script
+if [ -x "../bin/epm" ] ; then
+    export PATH="$(realpath ../bin):$PATH"
+fi
+
+print_command_path2()
+{
+    a= type -fpP -- "$1" 2>/dev/null
+}
+
+
+for i in $(seq 1 100) ; do
+    #epm tool which which
+    #which which
+    print_command_path2 which
+done
+
-- 
2.24.1