I tried to compile a package that contained the fairly standard: sed 's|@PREFIX@|%p|' < %a/%n.patch | patch -p1
in PatchScript and due to a screwup on my part, that patchfile didn't exist. An error message was reported by sed, however, the build process then continued! This appears to be just one example of a common feature of shell pipelines, rather than strictly a bug in fink's script handler. For example, from both bash and tcsh on OS X: touch /usr/bin/foo | echo "A" | echo "B" gives an error message from touch and echoes "B", meaning 'touch failed but [touch + first echo] succeeded. So when fink uses system() to execute the compound statement, it merely sees "overall success". This appears to be the case on linux also, so it's not just an OS X shell bug. That means even putting this thing in a formal #!/bin/bash -e *Script field won't save us since still the compound expression as a whole "succeeds". Thoughts? Creative solutions? dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Fink-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-devel
