Source-Changes-HG archive

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

[src/trunk]: src/etc Use $file instead of $(echo $file). I don't think the e...



details:   https://anonhg.NetBSD.org/src/rev/5f0496b91890
branches:  trunk
changeset: 454494:5f0496b91890
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Sep 18 22:27:55 2019 +0000

description:
Use $file instead of $(echo $file).  I don't think the extra round of
word expansions was really intended here.

diffstat:

 etc/security |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r b8de4f3eed03 -r 5f0496b91890 etc/security
--- a/etc/security      Wed Sep 18 20:18:27 2019 +0000
+++ b/etc/security      Wed Sep 18 22:27:55 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.124 2018/10/04 11:50:34 kre Exp $
+#      $NetBSD: security,v 1.125 2019/09/18 22:27:55 uwe Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -1033,12 +1033,12 @@
                *[\*\?\[]*)     # If changelist line is a glob ...
                                # ... expand possible backup files
                                #
-                       ls -1d $(echo $backup_dir/${file}.current) 2>/dev/null \
+                       ls -1d $backup_dir/${file}.current 2>/dev/null \
                            | sed "s,^$backup_dir/,, ; s,\.current$,,"
 
                                # ... expand possible files
                                #
-                       ls -1d $(echo $file) 2>/dev/null
+                       ls -1d $file 2>/dev/null
                        ;;
                *)
                                # Otherwise, just print the filename



Home | Main Index | Thread Index | Old Index