For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > December 2006 > Re: The precise behaviour of the | operator in POSIX extended









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: The precise behaviour of the | operator in POSIX extended
Icarus Sparry

2006-12-23, 7:02 pm

On Thu, 21 Dec 2006 16:36:37 -0800, Spiros Bousbouras wrote:

> Spiros Bousbouras wrote:
>
> Or to put it otherwise , how portable would a script,
> which uses that behaviour, be ?


Very portable. See
http://www.opengroup.org/onlinepubs...799/xbd/re.html

"The search for a matching sequence starts at the beginning of a string
and stops when the first sequence matching the expression is found,
where first is defined to mean "begins earliest in the string". If the
pattern permits a variable number of matching characters and thus there
is more than one such sequence starting at that point, the longest such
sequence will be matched."
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com