I am consolidating a set of
proofreading scripts into a Makefile that includes a "proof" rule. This rule calls each of the underlying scripts - and
Aspell - in sequence. At the moment, running these will print output to the screen, but I would like to go one step further.
As these are "interactive" scripts, which return a text UI when run, is it possible to pass the results to bbresults and present matching items in a differences window?
The end result would look similar to the following:
proof:
duplicates.sh
passive-voice.sh
weasel-words.sh
aspell check $documentI have done something similar with a function
bbshellcheck, which has the following form:
bbshellcheck {
shellcheck -f gcc "$@" | bbresults
}On paper, this makes sense. However, it isn't working exactly as I expect -- Is this the wrong approach, or am I missing something obvious?