* The test command
@ 2006-09-12 18:20 Dave Yost
2006-09-13 1:16 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Dave Yost @ 2006-09-12 18:20 UTC (permalink / raw)
To: bug-coreutils, zsh-workers
I propose this addition to the age-old test command:
--verbose
If the test does not succeed, print the reason why to stderr
The usefulness of this is shown in this example:
if ! test --verbose -e "$file" ; then
exit $?
fi
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: The test command
2006-09-12 18:20 The test command Dave Yost
@ 2006-09-13 1:16 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2006-09-13 1:16 UTC (permalink / raw)
To: zsh-workers; +Cc: bug-coreutils
I'm CC'ing this to bug-coreutils with the full expectation that it'll
bounce because I'm not subscribed.
On Sep 12, 11:20am, Dave Yost wrote:
}
} I propose this addition to the age-old test command:
Unlikely. It breaks backwards compatibility. "test" is one of those
things that's now SO old, that essentially no changes are allowed. [*]
The meaning of
test --verbose
is equivalent to
test --verbose != ''
and there might somewhere be a script that depends upon
string=--verbose
test $string
to work correctly.
} The usefulness of this is shown in this example:
}
} if ! test --verbose -e "$file" ; then
} exit $?
} fi
zmodload -i zsh/system
if ! test -e "$file"; then
syserror >&2
exit $?
fi
[*] Zsh sometimes makes exceptions in places where a syntax error would
occur in the older version of the command, but never in places where the
change would alter the semantics of working syntax.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-13 1:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-12 18:20 The test command Dave Yost
2006-09-13 1:16 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).