Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-15 Thread Tim Chase
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. I was hunting through /etc/daily for something and see 1.5 (the 0.5 being in a

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-15 Thread Jason McIntyre
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. > > I

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-15 Thread Crystal Kolipe
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

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-15 Thread Jason McIntyre
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 > > compatibi

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-16 Thread chohag
Jason McIntyre writes: > 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

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-17 Thread Ingo Schwarze
Not a bug. But which one is preferable, test -L or test -h? TLDR: If you follow David Korn, -L is the way to go. If you feel nostalgic about old SunOS, -h looks nicer. Both were standardized in POSIX Issue 6 (2001), with no preference given there. Both always worked on OpenBSD, no matter which bas

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-17 Thread Tim Chase
On 2024-06-18 00:10, Ingo Schwarze wrote: > Hence i suggest the patch below; OK? Resolving the the apparent conflict of "don't use it" vs using it by making both permissible works for me. Thanks for researching the history on this and aligning them! -tkc

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-17 Thread Theo de Raadt
I am finding myself in agreement. Have we decided who will die on the hill? Ingo Schwarze wrote: > Not a bug. > But which one is preferable, test -L or test -h? > > TLDR: > If you follow David Korn, -L is the way to go. > If you feel nostalgic about old SunOS, -h looks nicer. > Both were stand

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-17 Thread Todd C . Miller
On Tue, 18 Jun 2024 00:10:03 +0200, Ingo Schwarze wrote: > I admit that usually, when there are two equivalent syntaxes, deprecating > one of them makes sense. But in this case, with POSIX setting both in > stone over 20 years ago, attempting to die on that particular molehill > seems pointless t

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-17 Thread Jonathan Gray
On Tue, Jun 18, 2024 at 12:10:03AM +0200, Ingo Schwarze wrote: > Not a bug. > But which one is preferable, test -L or test -h? > > TLDR: > If you follow David Korn, -L is the way to go. > If you feel nostalgic about old SunOS, -h looks nicer. > Both were standardized in POSIX Issue 6 (2001), with

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-17 Thread Ingo Schwarze
Hello Theo, Theo de Raadt wrote on Mon, Jun 17, 2024 at 06:06:41PM -0600: > I am finding myself in agreement. > Have we decided who will die on the hill? You volunteering? Be careful, jsg@ apparently has impressively heavy artillery in place that will blast you to shreds before you can even pro

Re: Minor doc-vs-implemention conflict in /etc/daily vs test(1)

2024-06-18 Thread Jonathan Gray
On Tue, Jun 18, 2024 at 11:32:58AM +1000, Jonathan Gray wrote: > > v8 (Feb 1985) and later /bin/test has -L, no -h > from looking at tuhs archives checking some earlier manual pages sunos 1.1 1984, test does not have -h .\" @(#)test.1 1.1 83/08/08 SMI; from UCB 4.2 .TH TEST 1 "18 January 1983"