Re: Behavior of file test operations on symlinks

2016-02-17 Thread Andrei Borzenkov
17.02.2016 23:19, Alan Dunn пишет: > On Wed, Feb 17, 2016 at 8:42 AM, Andrei Borzenkov > wrote: > >> 17.02.2016 03:34, Alan Dunn пишет: >>> Hi folks, >>> >>> Apologies if the following has already come up on this list; I looked for >>> it and could not find any mention of it. >>> >>> I noticed th

Re: Behavior of file test operations on symlinks

2016-02-17 Thread Alan Dunn
On Wed, Feb 17, 2016 at 8:42 AM, Andrei Borzenkov wrote: > 17.02.2016 03:34, Alan Dunn пишет: > > Hi folks, > > > > Apologies if the following has already come up on this list; I looked for > > it and could not find any mention of it. > > > > I noticed that in a GRUB script "[ -f ]" > evaluates

Re: Behavior of file test operations on symlinks

2016-02-17 Thread Andrei Borzenkov
17.02.2016 03:34, Alan Dunn пишет: > Hi folks, > > Apologies if the following has already come up on this list; I looked for > it and could not find any mention of it. > > I noticed that in a GRUB script "[ -f ]" evaluates > to true. This is unlike the behavior of the "test" binary, in which it

Behavior of file test operations on symlinks

2016-02-16 Thread Alan Dunn
Hi folks, Apologies if the following has already come up on this list; I looked for it and could not find any mention of it. I noticed that in a GRUB script "[ -f ]" evaluates to true. This is unlike the behavior of the "test" binary, in which it returns false: most file test operations derefer