bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Command Scripting Question


From: Casey McGinty
Subject: Command Scripting Question
Date: 26 Mar 2003 23:34:41 -0500

Please excuse me if this is not the correct place to post this question.

I am tryign to run a ./configure script from within a bash shell script,
but am having difficulties. It works from the command propt, so I know
the actual command is correct, however, bash is not interpreting the
command correctly in the script. This is where I need some help.

The command I am trying to run is:

./configure --libs="-lresolv -ltermcap -static"

I have a variable in bash that is assigned the configure arguments, and
run in the way shown below.

options='--libs="-lresolv -ltermcap -static"'
./configure $options

The configure command does not interpret the double quotes inside the
variable correctly and fails to run. Obviously, it works when I write
out the entire command in the script, however it is driving me crazy not
being able to figure out how to get it to work like the way above.

I have gone over a lot of documentation and have not found a solution.
Any help would be aprreciated. Please respond directly by email if you
can.

- Casey
pcm6519 at rit dot edu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]