diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 16:11:17 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 16:11:17 +0200 |
commit | 22e406514c70f881f132d0cc9bd04a4dbade3188 (patch) | |
tree | 69be2af90ab49d71da7fd1876a62be93057b67d5 /mcom | |
parent | 07d3be7a8f49f7d009138c239df6e263e96d12e4 (diff) | |
download | mblaze-22e406514c70f881f132d0cc9bd04a4dbade3188.tar.gz mblaze-22e406514c70f881f132d0cc9bd04a4dbade3188.tar.xz mblaze-22e406514c70f881f132d0cc9bd04a4dbade3188.zip |
mcom: simplify To:
Diffstat (limited to 'mcom')
-rwxr-xr-x | mcom | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mcom b/mcom index 0402b20..8400de6 100755 --- a/mcom +++ b/mcom @@ -38,12 +38,8 @@ fi { case "$0" in *mcom*) - echo -n "To: $1" - [ "$#" -ge 1 ] && shift - for rcpt; do - echo -n ", $rcpt" - done - echo + echo -n "To: " + printf '%s\n' "$@" | commajoin echo "Cc: " echo "Bcc: " echo "Subject: " |