Issue2076

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

Created on 2013-08-24.09:29:07 by rovf, last changed 2018-03-17.05:09:28 by jeff.allen.

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
msg9117 (view) Author: Jim Baker (zyasoft) Date: 2014-10-07.00:18:51
Duplicate of #1978
msg11813 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-17.05:09:28
#1978 is closed 'out of date' so this should not be 'duplicate', unless there's another superseder somewhere.

It seems an easy fix. Is this still an issue for supported platforms? (How can it be supported if we can't test?)
History
Date User Action Args
2018-03-17 05:09:28jeff.allensetpriority: normal
resolution: duplicate ->
messages: + msg11813
nosy: + jeff.allen
2014-10-07 00:18:51zyasoftsetresolution: duplicate
messages: + msg9117
nosy: + zyasoft
2013-08-24 09:29:07rovfcreate