Hi Bart,
Am 2008-03-22 14:19:57, schrieb Bart Schaefer:
I suspect that procmail is trying to substitute its own value for $#
(number of command line arguments) before it even gets as far as
calling the shell to do the echo. ${#NUMBER} as a way of returning
the number of characters in $NUMBER is a more recent shell invention
than procmail's 20+ years old parser is prepared to deal with.
Hmm, OK.
You might be able to work around that by doing this:
LENGTH=`echo ${#NUMBER} ; :`
The semicolon will tell procmail that it can't execute the command
directly and must instead spawn a shell, which may bypass its attempt
to do the variable substitution internally.
I was thinking, if "SHELL=/bin/bash" is used that it automaticaly run
/bin/bash -c <commands>
If that doesn't work, you'll have to do something like
:0
* 1^1 NUMBER ?? .
{ LENGTH=$= }
:-)
I will go this way... its faster. MUCH faster.
(I fixed the HT -> TH in both examples above, in case you didn't notice.)
I was alredy greping for LENGHT and gotten over 200 files...
With over 700 consistent wrong spellings.
Do it or don't do it. -- But if you do it, then consistent. :-)
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail