On 6/11/14 9:45 AM, Martin Michlmayr wrote:
> * Stefano Zacchiroli <[email protected]> [2014-06-11 09:08]:
>>    $ echo $COLUMNS
>>    134
...
> I don't know why, but it seems $COLUMNS is not passed to ledger.
> std::getenv("COLUMNS") doesn't return anything whereas
> std::getenv("HOME") does.
> 
> Also, this works:
>    COLUMNS=100 ledger -f d reg

Looks like a shell issue.
If you don't 'export COLUMNS' it won't be available except to the shell itself.
When you set the value on the command line prior to the command, it is exported
to the environment just for that command.

Try the env command to check what is actually being
set in the environment vs. what is just a shell variable.
(env|sort is usually more helpful)

-=Doug

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to