Cory Cline wrote: > On Fri, Oct 5, 2012 at 12:22 PM, Bruce Dubbs <[email protected]> wrote: >> Cory Cline wrote: >> >>> I ran "sh file.sh | grep error" (file.sh is >>> the name of the for script. I ran this outside of the bash -e so >>> that I could see where the error >>> was coming in. It seems that it is erroring on the first commented >>> line in my proto-7.7.md5 script. Is there any reason that it would >>> ignore the #? >> >> Paste the script.
> > cat > proto-7.7.md5 << "EOF" > #c1d50749c3ac5215a1a9425818e856c1 applewmproto-1.4.2.tar.bz2 That's not a script, it's a list of md5sums. The # means that the line is commented out. The grep -v '^#' skips the line. If you are trying to run that as a script, then of course it will fail. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
