<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 06/01/2010 10:09 AM, Thomas Lange wrote:
<blockquote
cite="mid:19461.8891.248750.522977@kueppers.informatik.uni-koeln.de"
type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">On Mon, 24 May 2010 17:11:07 -0500, Rob <a class="moz-txt-link-rfc2396E" href="mailto:rclemley@booksys.com"><rclemley@booksys.com></a> said:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">
> This is because ainsl returns an error (1) if the line is already in the
> exit 1 if $found; # nothing to append
I've changed this to 0 in the svn trunk. Thanks for the hint.
</pre>
</blockquote>
Nice. In the days since my post, I thought of the alternative to
add an extra option, (similar to some on fcopy) that would cause
ainsl to return non-zero only if the line could not be verified in
the target file. But I think your fix is better for the long term
of FAI, even though some config space changes might be required in
the short term.<br>
<br>
<blockquote
cite="mid:19461.8891.248750.522977@kueppers.informatik.uni-koeln.de"
type="cite">
<pre wrap=""> > The return values of ainsl are not documented on the ainsl manpage.
Feel free to send a patch for the man page. I will apply it
immediately.
</pre>
</blockquote>
Patch attached. This patch is for the newly modified ainsl(1)
command which returns 0 if the LINE/PATTERN was found in the file
(revision 5797).<br>
<br>
Thanks.<br>
<br>
-- <br>
Rob<br>
<br>
</body>
</html>