From f5e81c74b4716816ceff0da165082246fdb55db0 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev 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 } #- Список функций и псевдонимов