Skip to main content
2 of 4
BC_LINE_LENGTH is GNU-only. You need quotes around ^ in the Bourne shell and zsh -o extendedglob
Stéphane Chazelas
  • 584.9k
  • 96
  • 1.1k
  • 1.7k

No idea why its there, but here's how to disable it with the GNU implementation of bc:

echo '6^6^3' | BC_LINE_LENGTH=0 bc

BC_LINE_LENGTH

This should be an integer specifying the number of characters in an output line for numbers. This includes the backslash and newline characters for long numbers. As an extension, the value of zero disables the multi-line feature. Any other value of this variable that is less than 3 sets the line length to 70.

Graeme
  • 34.6k
  • 9
  • 90
  • 110