From 1029b55f3bbce1874b406b1ce59fe71654df5f87 Mon Sep 17 00:00:00 2001 From: Maxim Lihachev Date: Sun, 7 Dec 2014 12:43:32 +0500 Subject: [PATCH] bash: date: fix --- etc/shell/bash/aliases | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index d812b63..2f9636b 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -116,7 +116,11 @@ command_not_found_handle() { #noindex #- Дата function date() { #noindex - command date ${@:-'+%A, %d %B %Y, %H:%M'} + if [ -z "$1" ]; then + command date '+%A, %d %B %Y, %H:%M' + else + command date "$@" + fi } #- Список функций и псевдонимов