On Friday 06 July 2007, Florian La Roche wrote: > > Well, I don't remember if I was involved in that, but if we don't want > > the scriptlet to fail and don't want to display the error output (no > > matter whether it's because of a missing executable or some other error > > running it), dunno if checking first adds any value. > > Hello Ville, > > what's wrong with "if test -x app; then app; fi" for this? > Shouldn't this fix all problems? What I was talking about in the above the difference between these two: app >/dev/null 2>&1 || : if test -x /usr/bin/app ; then /usr/bin/app >/dev/null 2>&1 || : ; fi *But* if we want to let stderr of "app" through (or to let it cause a nonzero exit status, which we almost certainly don't want), then testing first is obviously needed. -- Fedora-maintainers mailing list Fedora-maintainers@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-maintainers -- Fedora-maintainers-readonly mailing list Fedora-maintainers-readonly@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly