On Wed, May 09, 2018 at 03:20:06PM -0500, David Wright wrote: > remove-empties () > { > [ -z "$1" ] && printf '%s\n' "Usage: $FUNCNAME directories ... > removes any empty directories under the directories given after > prompting." 1>&2 && return 1; > local IFS=" > "; > find $* -depth -xdev -type d -empty -ok rmdir {} \; > }
$* should be "$@" with the quotes. find "$@" -depth -xdev -type d -empty -ok rmdir {} \; > (To Greg: is there a better IFS to use?) IFS is irrelevant when you quote properly. You can simply remove that assignment command.