From 87aba4d437f5fef46917c1235c00b9162d7bcbd0 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 27 Jan 2025 23:00:17 +0100 Subject: 53325: cover newer BSD releases in completion --- Completion/Unix/Command/_date | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Command/_date') diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date index f0053ec02..f70fc3722 100644 --- a/Completion/Unix/Command/_date +++ b/Completion/Unix/Command/_date @@ -37,7 +37,10 @@ else ) ;| freebsd*|dragonfly*|darwin*|netbsd*) - args+=( '-n[only set time on current machine]' ) + args+=( + '-n[only set time on current machine]' + '-R[display in RFC2822 format]' + ) ;| freebsd*|dragonfly*|darwin*|openbsd*) args+=( @@ -61,11 +64,14 @@ else ;| freebsd*|dragonfly*|darwin*) args+=( - '-R[display in RFC2822 format]' - '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds)' "*-v+[adjust and print (but don't set) date]:[+-]value[ymwdHMS]" ) ;| + dragonfly*|darwin*) + args+=( + '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds)' + ) + ;| freebsd<-12>.*) args+=( '-d+:daylight saving time value' @@ -77,6 +83,11 @@ else freebsd<14->.*|openbsd*) args+=( '-z+[specify timezone for output]:time zone:_time_zone') ;| + freebsd*) + args+=( + '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds ns)' + ) + ;| netbsd*) args+=( '-d[output date specified by string]:time string:' ) ;; -- cgit v1.2.3-70-g09d2