[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link.test
From: |
Albert Chin |
Subject: |
Re: link.test |
Date: |
Sat, 9 Oct 2004 21:16:43 -0500 |
User-agent: |
Mutt/1.5.6i |
On Sat, Oct 09, 2004 at 09:55:40PM -0400, Charles Wilson wrote:
> The following two-line string, stored in the variable $linkresult
>
>
> gcc -o .libs/gettext ../lib/libnlsut.a
What two-line string? Can you be more specific about line #1, line #2,
and where the lines begin/end (e.g.):
1. [gcc -o .libs/gettext]
2. [ ../lib/libnlsut.a]
> Any ideas? Should we strip off the first line of $linkresult and only
> match that? Use *../lib/libnlsut.a\n*) or something as the match string
> (How DO you encode a newline in a match string is POSIX sh?)
I tried the following but cannot duplicate your failure:
#!/bin/sh
linkresult="gcc -o .libs/gettext
../lib/libnlsut.a"
echo $linkresult
case "$linkresult" in
*../lib/libnlsut.a) ;;
*) echo fail ;;
esac
--
albert chin (address@hidden)
- link.test, Charles Wilson, 2004/10/09
- Re: link.test,
Albert Chin <=