From c0b6e2e5108d6c241532b92cb7dc5df164a41dc4 Mon Sep 17 00:00:00 2001 From: Jan Sorensen Date: Sun, 30 Aug 2015 21:14:42 +0200 Subject: [PATCH] Use BSD and Gnu compatible option for tail Use 'tail -n +2' instead of 'tail +2'. Semanctics are the same but 'tail +2' is not accepted by Gnu tail. --- src/_docker-machine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_docker-machine b/src/_docker-machine index cf1cfbe..76a2d82 100644 --- a/src/_docker-machine +++ b/src/_docker-machine @@ -18,7 +18,7 @@ # helper function for completing available machines __machines() { declare -a machines_cmd - machines_cmd=($(docker-machine ls|tail +2|awk '{print $1":"$3"("$4")"}')) + machines_cmd=($(docker-machine ls|tail -n +2|awk '{print $1":"$3"("$4")"}')) _describe 'machines' machines_cmd }