diff options
author | atatat <atatat@NetBSD.org> | 2005-04-09 02:02:15 +0000 |
---|---|---|
committer | atatat <atatat@NetBSD.org> | 2005-04-09 02:02:15 +0000 |
commit | 73877620f60db66ab60ad3e64f471e01dab784cb (patch) | |
tree | 98ecf445607edb444858f8495c697ed2d97a5f16 /caesar | |
parent | ae61e2ce29d76070d6c58e94d6cd226be4afe476 (diff) | |
download | bsdgames-darwin-73877620f60db66ab60ad3e64f471e01dab784cb.tar.gz bsdgames-darwin-73877620f60db66ab60ad3e64f471e01dab784cb.tar.zst bsdgames-darwin-73877620f60db66ab60ad3e64f471e01dab784cb.zip |
Don't assume /usr/games; use the same path as what rot13 was found at
to run caesar.
Diffstat (limited to 'caesar')
-rw-r--r-- | caesar/rot13.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 "$@" |