# HG changeset patch # User Franz Glasner # Date 1695290589 -7200 # Node ID 7056e5b7712d43a62415c1ee558ebbf4af8b856e # Parent 2cd4777821fc0a0476fa47582f4c1db72a0ebdef Improvenents in handling names with spaces: quoting fixes diff -r 2cd4777821fc -r 7056e5b7712d sbin/fzfs --- a/sbin/fzfs Thu Sep 21 09:35:07 2023 +0200 +++ b/sbin/fzfs Thu Sep 21 12:03:09 2023 +0200 @@ -356,12 +356,12 @@ if [ -z "${_opt_mountpoint}" ]; then _rflags="${_rflags} -x mountpoint" else - _rflags="${_rflags} -o mountpoint="'"'"${_opt_mountpoint}"'"' + _rflags="${_rflags} -o mountpoint='${_opt_mountpoint}'" fi else _rflags="${_rflags} -x mountpoint" fi - echo "zfs send -Lec -p -v ${_ds}${_ds_source_snapshot} | zfs receive -v $_opt_nomount ${_rflags} ${_ds_target}${_ds_relname}" + echo "zfs send -Lec -p -v '${_ds}${_ds_source_snapshot}' | zfs receive -v ${_opt_nomount} ${_rflags} '${_ds_target}${_ds_relname}'" done }