Am Montag 23 Juli 2018 schrieb Stefan Krusche:
> Am Montag 23 Juli 2018 schrieb Zenaan Harkness:
> > On Tue, Jul 17, 2018 at 03:04:41AM +0200, Stefan Krusche wrote:
> > > Am Dienstag 17 Juli 2018 schrieb Zenaan Harkness:
> > > > bc FTW - so quick, so handy
> > > >
> > > > First line I always run though is:
> > > >  scale=9
> > >
> > > When you don't want to type this every time:
> > >
> > > $ cat ~/.bcrc
> > > scale=3
> >
> > OK, so I created ~/.bcrc, setting scale to 20:
> >
> > $ cat ~/.bcrc
> > scale=20
> >
> > BUT, when I run bc, I get:
> >
> > $ bc
> > bc 1.06.95
> > Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software
> > Foundation, Inc.
> > This is free software with ABSOLUTELY NO WARRANTY.
> > For details type `warranty'.
> > scale
> > 0
> > ^D
> >
> > What am I doing wrong here?

The problem is probably solved with Curt's and Greg's answers, but still to 
answer your question: ~/.bcrc is not a default config file for bc (sorry, 
didn't think about having it created on my own when I wrote my previous post) 
and is only read if you have "BC_ENV_ARGS=~/.bcrc" in your environment or as an 
argument to bc on the command line.

Kind regards,
Stefan

Reply via email to