<<< Date Index >>>     <<< Thread Index >>>

Re: wrap long lines



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This may not help you with your problem, but it may help explain some 
stuff that appears to be "bizarre" behavior.

On Sunday, August 27 at 11:34 AM, quoth cga2000:
>I did the following in a bash shell:
>
>$ export $COLUMNS
>$ mutt 

Unless $COLUMNS evaluates to something like a variable name, that 
first command will be interpreted as "export". You would have to do 
something like:

    export COLUMNS

Note the lack of the $ in front of the variable name.

>:set wrapmargin="$COLUMNS-80"
>
>and mutt tells me:
>
>221-80: invalid value.

Because mutt doesn't recognize and evaluate mathematical expressions.

>This is likely not relevant but even though $COLUMNS is an environment
>variable in my context.. I still had to add the export statement before
>mutt was able to access its contents.

It's not an environment variable by default in the bash shell. It's 
described in the man page in a section titled "Shell Variables", and 
shell variables are not exported to the environment by default.

~Kyle
- -- 
All men by nature desire to know.
                                                          -- Aristotle
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFE8nUHBkIOoMqOI14RAoioAKDLz3LEP5rUw3JV7V9bWFP03H4cQQCgwsIt
QiUTbFMKILDXH9S6RFHwoDo=
=NOos
-----END PGP SIGNATURE-----