🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bill Sommerfeld Mon, 03 Oct 1988 22:34
bogus error messages from diff -r
#1374
Author: Bill Sommerfeld
Date: Mon, 03 Oct 1988 22:34
33 lines
1174 bytes
Here's a test shell script:

#! /bin/sh 
diff=${1-/bin/diff}
mkdir /tmp/diffa
mkdir /tmp/diffb
mkdir /tmp/diffa/one
cp /dev/null /tmp/diffb/one
echo forwards:
$diff -r /tmp/diffa /tmp/diffb
echo backwards:
$diff -r /tmp/diffb /tmp/diffa
rm -rf /tmp/diffa /tmp/diffb

When I run it with GNU diff, I get the following garbled error
message:

% /tmp/test ./diff
forwards:
./diff: %s is a directory but %s is not /tmp/diffa/one
backwards:
./diff: %s is a directory but %s is not /tmp/diffa/one

The UNIX diff prints the following less-garbled but less-correct error
message:

% /tmp/test /bin/diff
forwards:
Binary files /tmp/diffa/one and /tmp/diffb/one differ
backwards:
Binary files /tmp/diffb/one and /tmp/diffa/one differ

					- Bill
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads