Issue2076

classification
Title: Bug in jython bash startup script (shows on Mac)
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: rovf
Priority: Keywords:

Created on 2013-08-24.09:29:07 by rovf, last changed 2013-08-24.09:29:07 by rovf.

Messages
msg8087 (view) Author: Ronald (rovf) Date: 2013-08-24.09:29:07
The jython bash script contains a line

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

This is correct for the Implementation of expr which comes with Linux, but does not work on Mac (and likely on BSD either). The reason is that the Mac expr does not permit a regexp which looks syntactically like an operator. This is documented here:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/expr.1.html

Solution: Replace this line by

  if expr "$link" : '[/]' > /dev/null; then
History
Date User Action Args
2013-08-24 09:29:07rovfcreate