[Debian-med-packaging] Bug#915541: Removal of upstream "--will-cite" functionality has been reverted

Ole Tange tange at gnu.org
Mon Aug 30 18:22:52 BST 2021


On Mon, Aug 30, 2021 at 3:38 PM Andreas Tille <andreas at fam-tille.de> wrote:
:
> I admit I also considered a wrapper but with a different functionality:
> Simply check whether --citation was used before and if not do so.

If you mean a wrapper similar to this, then that would be a compromise
I can live with:

if [ -t 2 -a ! -e "$HOME/.citation-run" ] ; then
  # Only run if stderr is a terminal (to avoid breaking scripts)
  parallel.real --citation
  touch "$HOME/.citation-run"
fi
parallel.real "$@"

By testing if stderr is redirected this should avoid breaking scripts
(e.g. cron jobs or similar).

To me it would feel similar to a dialog box, where you have to click
"Don't show this again" to continue the first time. This is not that
uncommon in graphical tools, so there is some precedence for this.

I find it less than optimal, but if we can find common ground on that,
it would be a compromise I can live with.


/Ole



More information about the Debian-med-packaging mailing list