Re: doing operations with bash script

2012-03-05 Thread alphabah
I found where the error is coming from. it is rather form dt that is written in exponential format and not from torque. Now I have to convert it in decimal format. alphabah wrote: > > Dear all, > > I am trying to do some operation within a bash script but I am running > into problems very ear

doing operations with bash script

2012-03-05 Thread alphabah
Dear all, I am trying to do some operation within a bash script but I am running into problems very early. Say I want to do the following: - omegaNew=`echo "$omegaNew+$torque*$dt/$momentOfInertia*180/$pi" | bc -l` --- I got these outputs: - torque= -0.0665625 dt= 0.0012 o

DJGPP build

2012-03-05 Thread fabrizio gennari
Hello. I tried to build bash-4.2 for the DJGPP (GNU for MS-DOS) platform. It had been done before, but the latest available version was 2.04. Something interesting has been found in the process. First: version.c protects the use of snprintf with #if defined (HAVE_SNPRINTF). But HAVE_SNPRINTF

Re: bash tab variable expansion question?

2012-03-05 Thread Sebastian Siebert
On 05.03.2012 21:28, Chet Ramey wrote: On 3/5/12 2:07 PM, Sebastian Siebert wrote: Thanks for the great patch. I have applied your patch in our bash 4.2 + Patchlevel 20. It is solved an issue with variable expansion. But on the other side bash completion is broken. :-( Bash completion with lo

Re: bash tab variable expansion question?

2012-03-05 Thread Chet Ramey
On 3/5/12 2:07 PM, Sebastian Siebert wrote: > Thanks for the great patch. > > I have applied your patch in our bash 4.2 + Patchlevel 20. It is solved an > issue with variable expansion. But on the other side bash completion is > broken. :-( > > Bash completion with local file (./some_script.sh,

Re: bash tab variable expansion question?

2012-03-05 Thread Sebastian Siebert
Am 02.09.2011 21:32, schrieb Chet Ramey: On 2/24/11 5:14 PM, Michael Kalisz wrote: Bash Version: 4.2 Patch Level: 0 Release Status: release Description: Hi! Example: In bash, version 4.1.5(1)-release: $ echo $PWD/ will expand the $PWD variable to your current directory while in bash, vers