Subject: Re: bash shell question
From: [email-masked] (Tomas Fasth)

25 Nov 1997 17:34:03 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Michael Zawacki <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>

Michael, you can fix your problem in at least two ways as I can see it.

One way is to quote the 'filename' variable expansion like this:
   ln -s "$filename"
The shell is passing arguments after having them processed by the usual
whitespace rule. By adding quotes the shell will treat it as a single
argument. In this case you should not have any quotes in the execs.txt
file, otherwise the quotes will be regarded as part of the path name.

The other way is to keep your quotes in the execs.txt file and instead
evaluate the ln command line. Like this:
   eval ln -s $filename
In this case, the shell is becoming aware of any quotes that exists in
the execs.txt file.

The result would be identical in both cases and should fix your problem.

Tomas
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".