Thus spake Ken Hornstein: > >Challenge accepted: > > > >mhshow-show-text/html: %p/usr/bin/lynx `echo %a | sed -n > >'s/.*charset="\([^"]\+\)".*/-assume_charset=\1/p'` -force_html -dump '%f' | > >less > > Well played :-) > > Although ... will that end up with a zero-length parameter to lynx? Or > will that be eaten by the shell?
The subshell prints nothing when there's no charset, so what the shell sees is two consecutive spaces between "lynx" and "-force_html". (I tested this.) > I think you would admit that a %-escape > unambiguously specifying the character set would be preferrable :-) Definitely. I'm happy that I can do this, not happy that I must. Looking forward to a new %-escape in 1.6... -- J. _______________________________________________ Nmh-workers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/nmh-workers
