changeset 12505:64f8b628d17c draft

<wib_jonas> `` set -e; f=/hackenv/bin/datei; hg cat -r 11945 >"$f"; chmod a+x "$f"
author HackEso <hackeso@esolangs.org>
date Wed, 03 Jul 2024 17:59:06 +0100
parents 045be785a5cc
children 4e21820a85a7
files bin/datei
diffstat 1 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bin/datei	Wed Jul 03 17:55:23 2024 +0100
+++ b/bin/datei	Wed Jul 03 17:59:06 2024 +0100
@@ -1,4 +1,14 @@
-#!/bin/sh
-set -e
-if let "1<$#"; then echo "datei error: too many command-line arguments. Usage: datei datetimestring"; exit 2; fi
-exec date ${1:+-d "$1"} "+%Y-%m-%d %H:%M:%S.%3N %z %Z %B %-e %A %G-W%V-%u"
+hg cat [OPTION]... FILE...
+
+output the current or given revision of files
+
+options ([+] can be repeated):
+
+ -o --output FORMAT       print output to file with formatted name
+ -r --rev REV             print the given revision
+    --decode              apply any matching decode filter
+ -I --include PATTERN [+] include names matching the given patterns
+ -X --exclude PATTERN [+] exclude names matching the given patterns
+ -T --template TEMPLATE   display with template
+
+(use 'hg cat -h' to show more help)