From d3db859ca16758539421cee7f52ae2675cfa2526 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 5 Aug 1997 23:41:33 +0000 Subject: [PATCH] ylwrap patch from Ian --- ChangeLog | 5 +++++ lib/ylwrap | 5 +++++ ylwrap | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4c89e9687..39074a8c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 5 14:08:51 1997 Ian Lance Taylor + + * ylwrap: If the program is a relative path, force it to be + absolute. + Tue Aug 5 16:59:41 1997 Tom Tromey * missing: Examine A[CM]_CONFIG_HEADER for name of files to diff --git a/lib/ylwrap b/lib/ylwrap index b37f2cd37..b5b621843 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -29,6 +29,11 @@ # The program to run. prog="$1" shift +# Make any relative path in $prog absolute. +case "$prog" in + /*) ;; + */*) prog="`pwd`/$prog" ;; +esac # The input. input="$1" diff --git a/ylwrap b/ylwrap index b37f2cd37..b5b621843 100755 --- a/ylwrap +++ b/ylwrap @@ -29,6 +29,11 @@ # The program to run. prog="$1" shift +# Make any relative path in $prog absolute. +case "$prog" in + /*) ;; + */*) prog="`pwd`/$prog" ;; +esac # The input. input="$1" -- 2.47.3