Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #197941

Re: Calculator with "tapes"

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Calculator with "tapes"
Date 2018-07-23 13:30 +0200
Message-ID <weHcm-7f6-13@gated-at.bofh.it> (permalink)
References <wcf0R-61U-5@gated-at.bofh.it> <wcmF3-2q6-13@gated-at.bofh.it> <weyLL-1Io-1@gated-at.bofh.it> <weGT0-77R-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

On Mon, Jul 23, 2018 at 01:01:51PM +0200, Stefan Krusche wrote:

[...]

> > 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?

Hm. Same for me...

> No idea... .bcrc saved? And readable? Sorry, can't help.
> Stefan

Note that there's no mention of .bcrc in bc's man page...
Neither in bc's info page.

Running under strace I only see it trying to access ~/.inputrc and
~/.terminfo.

It seems you'll have to provide the init file explicitly on the command
line -- or to set the BC_ENV_ARGS. This works for me:

  echo "scale=0" > .my-bc-init-file # choose a better name :-)
  BC_ENV_ARGS=.my-bc-init-file 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
  20

Season to taste :-)

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAltVuqEACgkQBcgs9XrR2kZ90ACdFSWyurNuwDZ5X78H/O2RIstZ
gk0AnRI/UvFytcVqO6RxWuzTVJFARDp7
=3UHW
-----END PGP SIGNATURE-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Calculator with "tapes" Ken Heard <kenslists@teksavvy.com> - 2018-07-16 19:00 +0200
  Re: Calculator with "tapes" Joe <joe@jretrading.com> - 2018-07-16 19:10 +0200
    Re: Calculator with "tapes" Jude DaShiell <jdashiel@panix.com> - 2018-07-16 19:50 +0200
  Re: Calculator with "tapes" Boyan Penkov <boyan.penkov@gmail.com> - 2018-07-16 19:20 +0200
  Re: Calculator with "tapes" Nicholas Geovanis <nickgeovanis@gmail.com> - 2018-07-16 19:20 +0200
  Re: Calculator with "tapes" Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2018-07-16 19:50 +0200
  Calculator with "tapes" "Thomas Schmitt" <scdbackup@gmx.net> - 2018-07-16 20:00 +0200
  Re: Calculator with "tapes" Eric S Fraga <e.fraga@ucl.ac.uk> - 2018-07-16 23:10 +0200
  Re: Calculator with "tapes" Ben Caradoc-Davies <ben@transient.nz> - 2018-07-17 02:00 +0200
  Re: Calculator with "tapes" Zenaan Harkness <zenaan@freedbms.net> - 2018-07-17 02:20 +0200
    Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-17 03:10 +0200
      Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-17 11:20 +0200
        Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-17 12:40 +0200
          Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-17 13:40 +0200
            Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-17 14:30 +0200
              Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-17 14:50 +0200
                Re: Calculator with "tapes" Greg Wooledge <wooledg@eeg.ccf.org> - 2018-07-17 15:00 +0200
      Re: Calculator with "tapes" Zenaan Harkness <zenaan@freedbms.net> - 2018-07-23 04:30 +0200
        Re: Calculator with "tapes" Curt <curty@free.fr> - 2018-07-23 09:30 +0200
        Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-23 13:10 +0200
          Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-23 13:20 +0200
            Re: Calculator with "tapes" <tomas@tuxteam.de> - 2018-07-23 13:30 +0200
              Re: Calculator with "tapes" Stefan Krusche <linux@stefan-krusche.de> - 2018-07-23 13:50 +0200
          Re: Calculator with "tapes" <tomas@tuxteam.de> - 2018-07-23 13:30 +0200
  Re: Calculator with "tapes" Piotr <zaxonxp45@gmail.com> - 2018-07-17 07:30 +0200
  Re: Calculator with "tapes" John Darrah <xyllyx@gmail.com> - 2018-07-23 16:50 +0200

csiph-web