in reply to Re^2: -s testing for empty file; works on local, but not on remote
in thread -s testing for empty file; works on local, but not on remote
There is one difference:
If you don't check for errors, errors (incl non-existent files) being returned by -s will be mistaken as empty file.
If you don't check for errors, errors (incl non-existent files) being returned by -z will be mistaken as non-empty file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: -s testing for empty file; works on local, but not on remote
by Jeri (Scribe) on Sep 27, 2011 at 19:03 UTC | |
by ikegami (Patriarch) on Sep 27, 2011 at 19:06 UTC | |
|
Re^4: -s testing for empty file; works on local, but not on remote
by Jeri (Scribe) on Sep 27, 2011 at 19:15 UTC |