aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2017-04-10 03:01:54 +0400
committerBrian Behlendorf <[email protected]>2017-04-09 16:01:54 -0700
commit316da928253005187cd487b38d2c43dacef8eddd (patch)
tree53ad47c3caad494dddd48b274433ce3e047e464c /tests
parentd3b1783e445485ae1ee47e144160ac8852a7a246 (diff)
zfs_receive_010_pos.ksh local => typeset change
Ksh uses `typeset`, `local` is a Bash analog. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Wren Kennedy <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #5995
Diffstat (limited to 'tests')
-rwxr-xr-xtests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_010_pos.ksh16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_010_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_010_pos.ksh
index 1be4799d9..a9c0a47a3 100755
--- a/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_010_pos.ksh
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_010_pos.ksh
@@ -47,9 +47,9 @@ rfs=$TESTPOOL/$TESTFS/base/rfs
function make_object
{
- local objnum=$1
- local mntpnt=$2
- local type=$3
+ typeset objnum=$1
+ typeset mntpnt=$2
+ typeset type=$3
if [[ $type == "file" ]]; then
dd if=/dev/urandom of=${mntpnt}/f$objnum bs=512 count=16
elif [[ $type == "hole1" ]]; then
@@ -65,11 +65,11 @@ function make_object
function create_pair
{
- local objnum=$1
- local mntpnt1=$2
- local mntpnt2=$3
- local type1=$4
- local type2=$5
+ typeset objnum=$1
+ typeset mntpnt1=$2
+ typeset mntpnt2=$3
+ typeset type1=$4
+ typeset type2=$5
make_object $objnum $mntpnt1 $type1
make_object $objnum $mntpnt2 $type2
}