I want to run a for loop, is there a way to do a nullglob in the korn shell like in other shells?
for file in docs*.txt; do
I want to run a for loop, is there a way to do a nullglob in the korn shell like in other shells?
for file in docs*.txt; do
~(N)
. – Kusalananda May 08 '20 at 13:43ksh
is mentioned without any other qualifier, I'm assumingksh93
. – Kusalananda May 08 '20 at 13:44ksh
that is in use, and whether~(N)docs*.txt
works as you want it to or not. Unfortunately there are a number of variousksh
shells (ksh88
,ksh93
,pdksh
andmksh
), and they work slightly differently compared to each other. – Kusalananda May 08 '20 at 14:48