Message8087

Author rovf
Recipients rovf
Date 2013-08-24.09:29:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377336547.65.0.758868302175.issue2076@psf.upfronthosting.co.za>
In-reply-to
Content
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:07rovfsetrecipients: + rovf
2013-08-24 09:29:07rovfsetmessageid: <1377336547.65.0.758868302175.issue2076@psf.upfronthosting.co.za>
2013-08-24 09:29:07rovflinkissue2076 messages
2013-08-24 09:29:07rovfcreate