While reading your post for some reason it inspired me to a solution to the single variable problem. I've done this in the past, not sure why it didn't occur to me before. Have the script create a two line script of its own, and run that. That should work around diskutil's defective parameter processing.

I was unaware of the EVAL command, interesting...


I work for the Department of Redundancy Department