bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Say to use test -e in preference to test -a


From: 積丹尼 Dan Jacobson
Subject: Say to use test -e in preference to test -a
Date: Mon, 08 Feb 2021 22:02:08 +0800

$ man bash #and
$ help test #say
      -a FILE        True if file exists.
      -e FILE        True if file exists.
OK, but add a note that it would be better to use -e,
as it is more portable.

Compare
$ test -a .
$ /usr/bin/test -a .



reply via email to

[Prev in Thread] Current Thread [Next in Thread]