Title: Warning re unportable BRE when running "jython" on Linux
Type: behaviour Severity: minor
Components: Versions: 2.5.1
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nriley Nosy List: draghuram, nriley,
Priority: Keywords:

Created on 2010-03-31.18:29:22 by, last changed 2010-04-02.16:16:06 by nriley.

msg5611 (view) Author: Richard Shaffer ( Date: 2010-03-31.18:29:21
In the Linux jython script (under src/shell/jython in SVN), line 32 uses this command:

    if expr "$link" : '^/' > /dev/null; then

The '^' here is redundant, because expr implicitly matches from the beginning of the string. On some systems, like my RHEL 5.4 system, this produces a warning on the command line:

[rshaffer@rshaffer-dev1 ~]$ jython
expr: warning: unportable BRE: `^/': using `^' as the first character
of the basic regular expression is not portable; it is being ignored

It doesn't hurt anything, but the warning is ugly, and it's easy to fix. Simply remove the '^' character from the regex.

msg5620 (view) Author: Nicholas Riley (nriley) Date: 2010-04-02.16:16:05
Fixed in r6998. Thanks.
Date User Action Args
2010-04-02 16:16:06nrileysetstatus: open -> closed
assignee: nriley
resolution: fixed
messages: + msg5620
nosy: + nriley
2010-03-31 18:38:18draghuramsetnosy: + draghuram
2010-03-31 18:29:22rshaffer@vmware.comcreate