[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Sending Binary Attachments
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] Sending Binary Attachments |
Date: |
Thu, 12 May 2016 23:23:48 +0100 |
Hi Paul,
Sorry, can't resist commenting on the shell script. I realise it's old
and unedited in years. :-)
> read inputline
bash's read has -r to turn off backslash processing.
> if echo "$inputline" | grep -qv '^-\+-:$'
bash provides [[ and, as well as the parsing of its operands being more
regular, its operators include == (AKA =) that do `extglob' matching,
thus
if [[ $inputline == +(-) ]]; then ...
No need to double-quote $inputline. No need to escape the parenthesis
in the glob.
Cheers, Ralph.
Re: [Nmh-workers] Sending Binary Attachments, Ken Hornstein, 2016/05/12
- Re: [Nmh-workers] Sending Binary Attachments, Martin McCormick, 2016/05/12
- Re: [Nmh-workers] Sending Binary Attachments, Bob Carragher, 2016/05/12
- Re: [Nmh-workers] Sending Binary Attachments, Ken Hornstein, 2016/05/12
- Re: [Nmh-workers] Sending Binary Attachments, Bob Carragher, 2016/05/13
- Re: [Nmh-workers] Sending Binary Attachments, Ken Hornstein, 2016/05/13
- Re: [Nmh-workers] Sending Binary Attachments, Bob Carragher, 2016/05/13
- Re: [Nmh-workers] Sending Binary Attachments, Ralph Corderoy, 2016/05/14