pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc _NetBSD-pkgdb: Use $@ insted of $*
details: https://anonhg.NetBSD.org/pkgsrc/rev/ba586c71c5ef
branches: trunk
changeset: 443865:ba586c71c5ef
user: gdt <gdt%pkgsrc.org@localhost>
date: Tue Dec 29 17:56:14 2020 +0000
description:
_NetBSD-pkgdb: Use $@ insted of $*
Based on an offlist complaint from the shell style police :-)
diffstat:
_NetBSD-pkgdb | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r bc4ddae83d43 -r ba586c71c5ef _NetBSD-pkgdb
--- a/_NetBSD-pkgdb Tue Dec 29 14:07:34 2020 +0000
+++ b/_NetBSD-pkgdb Tue Dec 29 17:56:14 2020 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: _NetBSD-pkgdb,v 1.1 2020/12/28 01:18:27 gdt Exp $
+# $NetBSD: _NetBSD-pkgdb,v 1.2 2020/12/29 17:56:14 gdt Exp $
# Copyright The NetBSD Foundation 2020
# This script is for NetBSD only.
@@ -69,15 +69,15 @@
# Shell functions to print messages of varying severity. (We choose
# to avoid fancy formatting entirely in this script.)
msg () {
- echo "$*" >&2
+ echo "$@" >&2
}
warn () {
- echo "WARNING: $*" >&2
+ echo "WARNING: $@" >&2
}
fatal () {
- echo "FATAL: $*" >&2
+ echo "FATAL: $@" >&2
exit 1
}
@@ -324,4 +324,4 @@
fi
}
-main $*
+main "$@"
Home |
Main Index |
Thread Index |
Old Index