ident errors on unsupported $RCSINIT opts

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ident errors on unsupported $RCSINIT opts

dnied
>Synopsis: ident from OpenBSD's RCS suite should probably ignore $RCSINIT
>Category: user
>Environment:
        System      : OpenBSD 6.7
        Details     : OpenBSD 6.7 (GENERIC.MP) #182: Thu May  7 11:11:58 MDT 2020
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
I only use the RCSINIT environment variable with a value of '-zLT', in
order to always view dates in local time. RCS command `ident` does not
support option '-z', so it errors out.

This behaviour is different from what I get with GNU RCS, where `ident`
just ignores $RCSINIT.
>How-To-Repeat:
export RCSINIT='-zLT'
ident <some file>
>Fix:
My current workaround (with ksh):
alias ident='RCSINIT= ident'