TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > Unix

Notices

"find": AND/OR no longer equal precedence

Unix


Reply
 
Thread Tools Display Modes
Old 04-12-2007, 11:31 AM   #1
Mister.Fred.Ma@gmail.com
Guest
 
Posts: n/a
"find": AND/OR no longer equal precedence

There was a time when I used HP-UX and Solaris, and the "find"
command's AND (implied) and OR operators were of equal precedence.
Basically, operators were evaluated from left to right. I am
currently using GNU "find" version 4.3.8, and the AND operator has
greater precedence than the OR operator. When did this unequal
precedence start to become standard (assuming that it is standard) It
certainly is more intuitive, though we have to be careful of falling
back on old ways, and maybe need to rework old scripts? Is it pretty
well the way that *nix is going?

Thanks.

Fred
  Reply With Quote
Old 07-12-2007, 08:02 PM   #2
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:03 PM   #3
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:03 PM   #4
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:12 PM   #5
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:21 PM   #6
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:36 PM   #7
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:37 PM   #8
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Old 07-12-2007, 08:54 PM   #9
Geoff Clare
Guest
 
Posts: n/a
Re: "find": AND/OR no longer equal precedence

Mister.Fred.Ma wrote:

> There was a time when I used HP-UX and Solaris, and the "find"
> command's AND (implied) and OR operators were of equal precedence.
> Basically, operators were evaluated from left to right. I am
> currently using GNU "find" version 4.3.8, and the AND operator has
> greater precedence than the OR operator. When did this unequal
> precedence start to become standard (assuming that it is standard) It
> certainly is more intuitive, though we have to be careful of falling
> back on old ways, and maybe need to rework old scripts? Is it pretty
> well the way that *nix is going?


The precedence has been standard in POSIX since 1992 (when the first
POSIX.2 standard was published), and before that in XPG3 (1988).
It was almost certainly the same in XPG2, but I don't have a copy
to hand. (The XPG3 change history says nothing about any change
relating to precedence.)

I would be very surprised if there has ever been a version of find
where the precedence was different.

--
Geoff Clare <.uk>
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:22 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional