Hmmm, probably the first one-liner I've seen that I actually understand.
if I'm wrong, and I realize that this is not the thrust of your post, but isn't passing a user-given string to
an invite for the user to do unexpected things to your files? (e.g. user types ">filename" and clobbers a file)