pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/pkgdiff/files



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Nov 15 17:50:51 UTC 2023

Modified Files:
        pkgsrc/pkgtools/pkgdiff/files: pkgvi

Log Message:
pkgvi: more quoting


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/pkgtools/pkgdiff/files/pkgvi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/pkgdiff/files/pkgvi
diff -u pkgsrc/pkgtools/pkgdiff/files/pkgvi:1.12 pkgsrc/pkgtools/pkgdiff/files/pkgvi:1.13
--- pkgsrc/pkgtools/pkgdiff/files/pkgvi:1.12    Wed Nov 15 16:15:47 2023
+++ pkgsrc/pkgtools/pkgdiff/files/pkgvi Wed Nov 15 17:50:51 2023
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: pkgvi,v 1.12 2023/11/15 16:15:47 schmonz Exp $
+# $NetBSD: pkgvi,v 1.13 2023/11/15 17:50:51 wiz Exp $
 #
 # Copyright (c) 2001 Tomasz Luchowski. All rights reserved.
 #
@@ -56,7 +56,7 @@ usage() {
 }
 
 prepare_backup_files() {
-       for file in $@; do
+       for file in "$@"; do
                [ -f "$file" ] || die 2 "$progname: $file: No such file"
                chmod u+w "$file"
                if [ -f "$file.orig" ]; then
@@ -68,7 +68,7 @@ prepare_backup_files() {
 }
 
 remove_unneeded_backup_files() {
-       for file in $@; do
+       for file in "$@"; do
                if cmp "$file" "$file.orig" >/dev/null 2>&1; then
                        echo "$progname: File unchanged."
                        rm -f "$file.orig"
@@ -89,7 +89,7 @@ main() {
 
        prepare_backup_files "$@"
 
-       $editor $cmd $@
+       $editor $cmd "$@"
 
        remove_unneeded_backup_files "$@"
 }



Home | Main Index | Thread Index | Old Index