pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rust amd64 build failure.





On 23/04/2023 13:36, Rhialto wrote:

Would

script -c "make install" logfile
status=$?

You need the -e option for the exit code of the process to be preserved.

Without that option the exit code of the process isn't preserved and that's an option that only works on NetBSD 10. I need a solution that works on older versions as well.

Heres how I tested:
$ script -qc 'false' file
$ echo $?
0

This is the same on NetBSD-9.3-STABLE and 10-BETA

On NetBSD 10 which has the -e option:
$ script -eqc 'false' file
$ echo $?
1

Even on 10-BETA without the -e option $? is 0.

Mike




Home | Main Index | Thread Index | Old Index