Changes between Initial Version and Version 1 of Ticket #52954


Ignore:
Timestamp:
Nov 25, 2016, 4:19:23 PM (7 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

You should not rely on which returning a nonzero exit code when a program is not found; on Tiger, it doesn't do that.

I propose a different fix; attached.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52954

    • Property Status changed from new to assigned
    • Property Keywords haspatch added
    • Property Cc ryandesign added
    • Property Owner changed from macports-tickets@… to kirk@…
  • Ticket #52954 – Description

    initial v1  
    11This is current code in line
     2
     3{{{
    24gnused=$(which sed)
    35[[ "${platform}" == "Darwin" ]] && gnused=gsed
    46[[ -f "$gnused" ]] || { ERROR....}
    5 
     7}}}
    68
    79should be changed to
     10
     11{{{
    812which $gnused || error
     13}}}