Issue1588

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

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

Messages
msg5611 (view) Author: Richard Shaffer (rshaffer@vmware.com) 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.

-Richard
msg5620 (view) Author: Nicholas Riley (nriley) Date: 2010-04-02.16:16:05
Fixed in r6998. Thanks.
History
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