[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does [ -f FILE ] have a bug on testing a symlink ?
From: |
Cheng Rk |
Subject: |
Re: Does [ -f FILE ] have a bug on testing a symlink ? |
Date: |
Tue, 10 Feb 2015 00:00:08 +0000 (UTC) |
On Monday, February 9, 2015 3:13 PM, Andreas Schwab <schwab@linux-m68k.org>
wrote:
Cheng Rk <crquan@ymail.com> writes:
>> Then the builtin test help need a documentation fix, right?
You're addressing different lines but I am saying this line is inaccurate,
right?
-f FILE True if file exists and is a regular file.
Is there really a simple regular file test existing?
> test: test [expr]
Evaluate conditional expression.
Exits with a status of 0 (true) or 1 (false) depending on
the evaluation of EXPR. Expressions may be unary or binary. Unary
expressions are often used to examine the status of a file. There
are string operators and numeric comparison operators as well.
The behavior of test depends on the number of arguments. Read the
bash manual page for the complete specification.
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, (continued)
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, Chet Ramey, 2015/02/09
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, Ken Irving, 2015/02/09
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, Evan Gates, 2015/02/09
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, Eric Blake, 2015/02/09
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, Bob Proulx, 2015/02/09
- Re: Does [ -f FILE ] have a bug on testing a symlink ?, Andreas Schwab, 2015/02/09
Re: Does [ -f FILE ] have a bug on testing a symlink ?, Greg Wooledge, 2015/02/09
Re: Does [ -f FILE ] have a bug on testing a symlink ?, Geir Hauge, 2015/02/09