diff options
Diffstat (limited to 'awklib/eg')
-rw-r--r-- | awklib/eg/prog/igawk.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/awklib/eg/prog/igawk.sh b/awklib/eg/prog/igawk.sh index bd9d9ac8..03d1c996 100644 --- a/awklib/eg/prog/igawk.sh +++ b/awklib/eg/prog/igawk.sh @@ -84,6 +84,9 @@ function pathto(file, i, t, junk) if (index(file, "/") != 0) return file + if (file == "-") + return file + for (i = 1; i <= ndirs; i++) { t = (pathlist[i] "/" file) if ((getline junk < t) > 0) { |