This has something to do with resource forks. So use "-d filename/." instead, which returns false if filename is not a directory.
3 lines
84 B
Text
3 lines
84 B
Text
PREFIX=/a/b/c/d/e redo vartest2
|
|
read x <vartest2
|
|
[ "$x" = "/a/b/c/d/e" ] || exit 45
|