-
Notifications
You must be signed in to change notification settings - Fork 0
Compatibility
List of known current incompatibilities. The title tags can be searched for in the script.
[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
.
- Docs
- Howtos
- Technical Info
- Other