Can't update preferences and can't get rid of Welcome dialog in Gnucash 2.4.7 (OS X 2.6.8)

John Ralls jralls at ceridwen.us
Mon Aug 8 14:48:47 EDT 2011


On Aug 7, 2011, at 9:19 PM, John Ralls wrote:

> 
> On Aug 7, 2011, at 5:57 PM, prl wrote:
>> 
>>   if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then
>>       shift 1
>>   fi
>> 
>> to
>> 
>>   if expr "x$1" : '^x-psn_' > /dev/null; then
>>       shift 1
>>   fi
>> 
>> making use of the not-so-well-known regular expression matching in expr(1). Alternatively, it can also be fixed by using a pipeline of the echo and grep. I have tested that both those approaches work with --add-price-quotes=FILE where FILE contains spaces. Of course, $* needs to be changed to "$@" as well.
> 
> 
> Peter,
> 
> GConf uses the g_log facility, so I guess the client will be outputting to gnucash.trace, but the daemon will be writing to its stdout. There's a comment in gconfd.c about shipping everything to syslog, but I don't see any code to make that happen.
> 
> The shell trick seems to work, but I can't really test it thoroughly right now since the markets are closed and prices aren't changing. I'll whack on it a bit tomorrow. As for the little-known regex argument to expr, I sure didn't know about it. Thanks! (BTW, according to expr(1), the leading ^ isn't necessary: it's implied anyway.)


It seems that both "$*" and "$@" work, at least on Snow Leopard. I think, though, that "$@" is a bit safer, so I'll put that into the next release. Thanks.

Regards,
John Ralls




More information about the gnucash-user mailing list