From 8a5f80d8b69c9d3497887c21dba64b5604651d17 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 31 Mar 2010 15:29:08 -0700 Subject: Use a different PATH approach for pfiles //bin/true && exec stap -g $0 ${1+"$@"} This keeps it as an entirely valid stap script, so manual stap invocation still works (as in pfiles.meta). --- testsuite/systemtap.examples/process/pfiles.stp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testsuite/systemtap.examples/process/pfiles.stp b/testsuite/systemtap.examples/process/pfiles.stp index e7a16732..ac137887 100755 --- a/testsuite/systemtap.examples/process/pfiles.stp +++ b/testsuite/systemtap.examples/process/pfiles.stp @@ -1,6 +1,7 @@ #! /bin/sh -exec stap -g - ${1+"$@"} << 'END' +//bin/true && exec stap -g $0 ${1+"$@"} + # pfiles # Copyright (C) 2007-2010 Red Hat, Inc., Eugene Teo # @@ -609,7 +610,3 @@ probe begin { exit() } - - -END - -- cgit