8000 Avoid `type $0`, use `$0` directly. · jflex-de/jflex@9b204dd · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Avoid type $0, use $0 directly.
Browse files Browse the repository at this point in the history
In some locales, `type $0` produces additional output, see issue #251.
  • Loading branch information
lsf37 committed Nov 12, 2017
1 parent 39ea21a commit 9b204dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jflex/bin/jflex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash
#
# JFlex start script $Revision$
# JFlex start script
#
# if Java is not in your binary path, you need to supply its
# location in this script. The script automatically finds
Expand Down Expand Up @@ -28,8 +28,7 @@ JFLEX_VERSION=1.7.0-SNAPSHOT

# calculate true location

PRG=`type $0`
PRG=${PRG##* }
PRG="$0"

# If PRG is a symlink, trace it to the real home directory

Expand Down

0 comments on commit 9b204dd

Please sign in to comment.
0