mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-06 23:36:03 +02:00
14489: workaround for find bug on ReliantUNIX
This commit is contained in:
parent
ff98487aa5
commit
60df1f9eec
|
@ -1,3 +1,8 @@
|
|||
2001-05-26 Andrej Borsenkow <bor@zsh.org>
|
||||
|
||||
* 14489: Test/C02cond.ztst: workaround for (probably) find
|
||||
bug on ReliantUNIX made visible by 14484.
|
||||
|
||||
2001-05-25 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 14484: Test/C02cond.ztst: Print a warning and skip the -b test
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
0:-a cond
|
||||
|
||||
# Find a block special file system. This is a little tricky.
|
||||
if block=$(find /dev(|ices)/ -type b -print); then
|
||||
block=$(find /dev(|ices)/ -type b -print 2> /dev/null)
|
||||
if [[ -n $block ]]; then
|
||||
[[ -b $block[(f)1] && ! -b zerolength ]]
|
||||
else
|
||||
print -u8 'Warning: Not testing [[ -b blockdevice ]] (no devices found)'
|
||||
|
|
Loading…
Reference in New Issue