Etienne Vermaas wrote:
>
> Hi all,
Hello,
> A check to see if a pathname is "relative" or complete in some of the shell
> scripts works (seems to work)
> but I am not clear about the ?! part in the expresion, and also it seems
> that they do go together, because leaving either the ? or the ! ou
The (?! regex) is called a zero-width negative look-ahead assertion
which in this case says if the first character of the search is NOT a / then
you have a relative directory name. With this type of test, there is no
association of a hit to $1, $2, etc.
You could just as easily do