sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 519 forks source link

Avoid undocumented usage of the head utility. #163

Closed rojkov closed 4 years ago

rojkov commented 8 years ago

Some implementations of head (e.g. the one in Busybox) can't handle options like "-1". Replace them with "-n1".

Signed-off-by: Dmitry Rozhkov dmitry.rozhkov@linux.intel.com

ztombol commented 8 years ago

This patch fixes all uses of head. Haven't tested it, but the new usage conforms to POSIX and works with busybox according to its documentation.

rojkov commented 4 years ago

closing as it got merged in https://github.com/bats-core/bats-core/pull/17