From 73877620f60db66ab60ad3e64f471e01dab784cb Mon Sep 17 00:00:00 2001 From: atatat Date: Sat, 9 Apr 2005 02:02:15 +0000 Subject: Don't assume /usr/games; use the same path as what rot13 was found at to run caesar. --- caesar/rot13.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'caesar') diff --git a/caesar/rot13.sh b/caesar/rot13.sh index d00d385f..005ef8d0 100644 --- a/caesar/rot13.sh +++ b/caesar/rot13.sh @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: rot13.sh,v 1.6 2000/04/24 15:42:40 simonb Exp $ +# $NetBSD: rot13.sh,v 1.7 2005/04/09 02:02:15 atatat Exp $ # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. @@ -35,4 +35,5 @@ # @(#)rot13.sh 8.1 (Berkeley) 5/31/93 # -exec /usr/games/caesar 13 "$@" +games="$(dirname $0)" +exec "$games/caesar" 13 "$@" -- cgit v1.2.3-56-ge451