Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Compatibility

joseLuís edited this page Jan 5, 2017 · 7 revisions

List of known current incompatibilities. The title tags can be searched for in the script.

Table of Contents


[INC01]

Problem: grep -P (with PCRE support) is not available in Mac OS X nor BSD systems.

Solution: install the GNU version of grep.

[INC02]

To get the current time up to the millisecond.

local -ir __WEBERA_TIME_STAMP="$(date '+%s%3N')"

Problem: %N is not recognized by the BSD version of the date command.

Solution: install the GNU version of coreutils.

[INC03]

To reformat a previously saved date in seconds.

local -r _DATE="$(date '+%Y-%m-%d %H:%M:%S' -d @"${__WEBERA_TIME_STAMP:0:10}")"

Problem: date -d is not compatible with BSD systems (source)

Solution: install the GNU version of coreutils.

Alternative: (depends on Bash >= 4.2)

    local -r _DATE="$(printf '%(%F %T)T\n' "$__WEBERA_TIME_STAMP")"

[INC04]

To create a temporary file or directory

Problem: New syntax --tmpdir is not recognized in the BSD version of mktemp.

Solution: install the GNU version of coreutils.

Alternative: Use old syntax -t.

Wiki Table of Contents

Clone this wiki locally