summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-11-03 08:41:26 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-11-03 08:41:26 +0000
commit4c28854100d25fdaf905ac8cd0d19b5036ebe8af (patch)
treef4ed39b7d2d16f92a829ecc555b4bbac6f95eccb /regress
parent0456df64819f7d86e86fef6766fcb54a96338719 (diff)
local variables are only used in functions.
Add missing RCS Ids. ok sthen@
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/tail/follow-newsyslog.sh12
-rw-r--r--regress/usr.bin/tail/follow-overwrite-by-file.sh12
-rw-r--r--regress/usr.bin/tail/follow-overwrite-data.sh12
-rw-r--r--regress/usr.bin/tail/follow-removed-recreated.sh12
-rw-r--r--regress/usr.bin/tail/follow-renames.sh10
5 files changed, 34 insertions, 24 deletions
diff --git a/regress/usr.bin/tail/follow-newsyslog.sh b/regress/usr.bin/tail/follow-newsyslog.sh
index 8926bd30c6a..dc51266513b 100644
--- a/regress/usr.bin/tail/follow-newsyslog.sh
+++ b/regress/usr.bin/tail/follow-newsyslog.sh
@@ -1,18 +1,20 @@
#!/bin/sh
+#
+# $OpenBSD: follow-newsyslog.sh,v 1.2 2012/11/03 08:41:25 ajacoutot Exp $
# test if tail follows a file rotated by newsyslog
#set TMPDIR to a nfs-based dir for nfs testing
-local DIR=$(mktemp -d)
+DIR=$(mktemp -d)
echo DIR=${DIR}
-local NAME=${0##*/}
-local OUT=${DIR}/${NAME%%.sh}.out
-local ERR=${DIR}/${NAME%%.sh}.err
+NAME=${0##*/}
+OUT=${DIR}/${NAME%%.sh}.out
+ERR=${DIR}/${NAME%%.sh}.err
echo bar > ${DIR}/bar
# retry until file appears for nfs
-local RET=1
+RET=1
while [ ${RET} == 1 ] ; do
tail -f ${DIR}/bar 2> ${ERR} > ${OUT} &
RET=$?
diff --git a/regress/usr.bin/tail/follow-overwrite-by-file.sh b/regress/usr.bin/tail/follow-overwrite-by-file.sh
index 180190fc669..29aecb07252 100644
--- a/regress/usr.bin/tail/follow-overwrite-by-file.sh
+++ b/regress/usr.bin/tail/follow-overwrite-by-file.sh
@@ -1,18 +1,20 @@
#!/bin/sh
+#
+# $OpenBSD: follow-overwrite-by-file.sh,v 1.2 2012/11/03 08:41:25 ajacoutot Exp $
# test if tail follows a file overwritten by another new file
#set TMPDIR to a nfs-based dir for nfs testing
-local DIR=$(mktemp -d)
+DIR=$(mktemp -d)
echo DIR=${DIR}
-local NAME=${0##*/}
-local OUT=${DIR}/${NAME%%.sh}.out
-local ERR=${DIR}/${NAME%%.sh}.err
+NAME=${0##*/}
+OUT=${DIR}/${NAME%%.sh}.out
+ERR=${DIR}/${NAME%%.sh}.err
echo bar > ${DIR}/bar
# retry until file appears for nfs
-local RET=1
+RET=1
while [ ${RET} == 1 ] ; do
tail -f ${DIR}/bar 2> ${ERR} > ${OUT} &
RET=$?
diff --git a/regress/usr.bin/tail/follow-overwrite-data.sh b/regress/usr.bin/tail/follow-overwrite-data.sh
index 356f0f39cea..f11ee4b9d0f 100644
--- a/regress/usr.bin/tail/follow-overwrite-data.sh
+++ b/regress/usr.bin/tail/follow-overwrite-data.sh
@@ -1,18 +1,20 @@
#!/bin/sh
+#
+# $OpenBSD: follow-overwrite-data.sh,v 1.2 2012/11/03 08:41:25 ajacoutot Exp $
# test if tail follows a file overwritten by data
#set TMPDIR to a nfs-based dir for nfs testing
-local DIR=$(mktemp -d)
+DIR=$(mktemp -d)
echo DIR=${DIR}
-local NAME=${0##*/}
-local OUT=${DIR}/${NAME%%.sh}.out
-local ERR=${DIR}/${NAME%%.sh}.err
+NAME=${0##*/}
+OUT=${DIR}/${NAME%%.sh}.out
+ERR=${DIR}/${NAME%%.sh}.err
echo bar > ${DIR}/bar
# retry until file appears for nfs
-local RET=1
+RET=1
while [ ${RET} == 1 ] ; do
tail -f ${DIR}/bar 2> ${ERR} > ${OUT} &
RET=$?
diff --git a/regress/usr.bin/tail/follow-removed-recreated.sh b/regress/usr.bin/tail/follow-removed-recreated.sh
index 3317006d31f..e14468bbfe3 100644
--- a/regress/usr.bin/tail/follow-removed-recreated.sh
+++ b/regress/usr.bin/tail/follow-removed-recreated.sh
@@ -1,18 +1,20 @@
#!/bin/sh
+#
+# $OpenBSD: follow-removed-recreated.sh,v 1.2 2012/11/03 08:41:25 ajacoutot Exp $
# test if tail follows a file removed then recreated later
#set TMPDIR to a nfs-based dir for nfs testing
-local DIR=$(mktemp -d)
+DIR=$(mktemp -d)
echo DIR=${DIR}
-local NAME=${0##*/}
-local OUT=${DIR}/${NAME%%.sh}.out
-local ERR=${DIR}/${NAME%%.sh}.err
+NAME=${0##*/}
+OUT=${DIR}/${NAME%%.sh}.out
+ERR=${DIR}/${NAME%%.sh}.err
echo bar > ${DIR}/bar
# retry until file appears for nfs
-local RET=1
+RET=1
while [ ${RET} == 1 ] ; do
tail -f ${DIR}/bar 2> ${ERR} > ${OUT} &
RET=$?
diff --git a/regress/usr.bin/tail/follow-renames.sh b/regress/usr.bin/tail/follow-renames.sh
index efa6121acf9..eae74ad0af8 100644
--- a/regress/usr.bin/tail/follow-renames.sh
+++ b/regress/usr.bin/tail/follow-renames.sh
@@ -1,17 +1,19 @@
#!/bin/sh
+#
+# $OpenBSD: follow-renames.sh,v 1.2 2012/11/03 08:41:25 ajacoutot Exp $
# test if tail follows a file descriptor across renames
#set TMPDIR to a nfs-based dir for nfs testing
-local DIR=$(mktemp -d)
+DIR=$(mktemp -d)
echo DIR=${DIR}
-local NAME=${0##*/}
-local OUT=${DIR}/${NAME%%.sh}.out
+NAME=${0##*/}
+OUT=${DIR}/${NAME%%.sh}.out
echo bar > ${DIR}/bar
# retry until file appears for nfs
-local RET=1
+RET=1
while [ ${RET} == 1 ] ; do
tail -f ${DIR}/bar > ${OUT} &
RET=$?