pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/scripts Fixed the definitio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/717f741373c5
branches:  trunk
changeset: 537863:717f741373c5
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jan 18 11:36:18 2008 +0000

description:
Fixed the definition of shell functions, as reported in PR 37795.

See also:
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_05
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_04

diffstat:

 pkgtools/pbulk/files/pbulk/scripts/pkg-build |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r b84d53be6635 -r 717f741373c5 pkgtools/pbulk/files/pbulk/scripts/pkg-build
--- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build      Fri Jan 18 11:26:11 2008 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build      Fri Jan 18 11:36:18 2008 +0000
@@ -1,5 +1,5 @@
 #!@SH@
-# $NetBSD: pkg-build,v 1.9 2008/01/17 17:47:09 joerg Exp $
+# $NetBSD: pkg-build,v 1.10 2008/01/18 11:36:18 rillig Exp $
 #
 # Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # All rights reserved.
@@ -43,8 +43,8 @@
        exit 1
 }
 
-run_direct() "$@"
-run_su() su ${unprivileged_user} -c '"$@"' make "$@"
+run_direct() { "$@"; }
+run_su() { su ${unprivileged_user} -c '"$@"' make "$@"; }
 
 run_make() {
        local run_cmd



Home | Main Index | Thread Index | Old Index