On Sun, Jun 16, 2024 at 03:05:24AM -0300, Crystal Kolipe wrote:
> On Sat, Jun 15, 2024 at 06:45:21PM -0500, Tim Chase wrote:
> > According to
> >
> > $ man [ | grep -A4 -e "-L.*f"
> > -L file
> > True if file exists and is a symbolic link. This operator is for
> > compatibility purposes. Do not rely on its existence; use -h
> > instead.
>
> There is definitely a discrepency between manual and source, because the
> source contains a comment saying that -h is for backwards compatibility:
>
> {"-h", FILSYM, UNOP}, /* for backwards compat */
>
> and that comment has been there since the code was imported to NetBSD in
> revision 1.13 in 1994.
>
...and i had forgot to note that posix lists -L but with no mention that
it's for the chop. i just checked and both -h and -L are noted as added
in issue 6. both options appear to be fully integrated.
jmc