On Saturday, 4 September 2021 at 06:18:52 UTC, JG wrote:
On Friday, 3 September 2021 at 19:56:30 UTC, JG wrote:
[...]

I tried again. What am I doing wrong?

cp source ~/tmp/source
cd ~/tmp/source
dub build --config prog1 2>&1 | grep "collect2: error: ld returned 1 exit status"
echo $? #produces 0
find . -name *.o -delete
~/d/DustMite/dustmite -j ./ 'dub build --config prog1 2>&1 | grep "collect2: error: ld returned 1 exit status"'
cd ../source.reduced
dub build --config prog1 2>&1 | grep "collect2: error: ld returned 1 exit status"
echo $? #produces 1

First line should be: cp -R source ~/tmp/source

Reply via email to