I'm splitting up the thread. In this part I'm wondering about the behaviour of dynamic variables: On Fri, 15 Oct, 2004 at 08:05:44 +0200, Anders Johansson wrote:
On Friday, 15 October 2004 07.54, Jon Clausen wrote:
On the commandline;
echo $[COLUMNS - 72]
works fine. It's just as if Mutt doesn't respond to the "set wrapmargin" -line...
Are you sure it doesn't evaluate to -72, making mutt ignore it? If you execute that echo in a non-interactive shell, I don't think $COLUMNS is set
Indeed it does (evaluate to -72 that is). Quoting from the PM you sent a little later: <quote> By default, $COLUMNS is a dynamically set variable. You may need to "export" it before you run mutt ~> cat test.sh #!/bin/bash echo $[COLUMNS-72] ~> echo $[COLUMNS-72] 8 ~> ./test.sh -72 ~> . test.sh 8 ~> export COLUMNS=$COLUMNS ~> ./test.sh 8 </quote> I get similar results on my systems, when doing the above. So that explains why the .muttrc 'set wrapmargin' doesn't take effect, because obviously -72 is invalid. But I'm a bit puzzled why it works for Patrick (and Leendert) Is it a difference between the SUSE versions (I'm on 8.2 still)? Or do (did) you export $COLUMNS manually? /Jon -- Just say "know!"