Date: Sat, 19 Mar 2016 08:29:08 +0000 (GMT)
From: Iain Hibbert <[email protected]>
Message-ID: <[email protected]>
| You can do this with eg
|
| case "${swapoff_umount+set}" in
| set)
| fs_to_umount="${swapoff_umount}"
| ;;
| *)
| fs_to_umount="$(dev_free_tmpfs)"
| ;;
| esac
Unless I am misreading it, that particular sequence is just ..
fs_to_umount=${swapoff_umount-"$(dev_free_tmpfs)"}
No need for case statements or similar.
kre
