mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-03 08:41:04 +01:00
zsh-workers/9137
This commit is contained in:
parent
26c6c332f9
commit
94ca95bd6f
1 changed files with 11 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
|||
touch zerolength
|
||||
print 'Garbuglio' >nonzerolength
|
||||
|
||||
touch modish
|
||||
mkdir modish
|
||||
chmod g+s modish
|
||||
chmod u+s modish
|
||||
chmod +t modish
|
||||
|
|
@ -26,7 +26,11 @@
|
|||
0:-a cond
|
||||
|
||||
# Find a block special file system. This is a little tricky.
|
||||
block=$(df / | tail -1 | awk '{ print $1 }') &&
|
||||
block=$(df / | awk '
|
||||
$NF == "/" {print $1}
|
||||
$1 == "/" && substr($2,0,1) == "(" {
|
||||
if((l = index($2,")") - 2) < 0) l = length($2) - 1;
|
||||
print substr($2,2,l)}') &&
|
||||
[[ -b $block && ! -b zerolength ]]
|
||||
0:-b cond
|
||||
|
||||
|
|
@ -61,7 +65,11 @@
|
|||
[[ -o rcs && ! -o norcs && -o noerrexit && ! -o errexit ]]
|
||||
0:-o cond
|
||||
|
||||
mknod pipe p
|
||||
if whence mkfifo >/dev/null; then
|
||||
mkfifo pipe
|
||||
else
|
||||
mknod pipe p
|
||||
fi
|
||||
[[ -p pipe && ! -p zerolength ]]
|
||||
0:-p cond
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue