Marcus Meissner said the following on 05/21/2012 05:08 PM:
On Mon, May 21, 2012 at 04:01:16PM -0500, David C. Rankin wrote:
Bash gurus,
Here is one I don't understand. I needed a simple script to part gtkrc and convert the r,g,b (0.0-1.0) values to (0-255). So I decided to use 'calc' to get the floating point values. The script was:
Did you try that with trace/debug turned on?
From MAN
--debugger Arrange for the debugger profile to be executed before the shell starts. Turns on extended debugging mode (see the description of the extdebug option to the shopt builtin below). and set [+abefhkmnptuvxBCEHPT] [+o option-name] [arg ...] with -v Print shell input lines they are read. -x After expanding each simple command, for command, case command, select command, or arithmetic for command, display the expanded value of PS4, followed by the command and its expanded arguments or associated word list. so as to find out the where and why of ${bg} being dragged in. You may want to make use of --norc Do not read and execute the personal initialization file ~/.bashrc if the shell is interactive. -- A program designed for inputs from people is usually stressed beyond breaking point by computer-generated inputs. -- Dennis Ritchie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org