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

Re: Bug#915541: Removal of upstream "--will-cite" functionality has been reverted



On Mon, Aug 30, 2021 at 07:22:52PM +0200, Ole Tange wrote:
> On Mon, Aug 30, 2021 at 3:38 PM Andreas Tille <andreas@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 "$@"

Thats fragil.
There is no guarantee that a (system) user has $HOME that it is writable.




(Regardin what to do in Debian, maybe its time to resurrect #597050?)

-- 
tobi


Reply to: