pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r924558 - in /hadoop/pig/trunk: CHANGES.txt bin/pig
Date Wed, 17 Mar 2010 23:41:29 GMT
Author: gates
Date: Wed Mar 17 23:41:29 2010
New Revision: 924558

URL: http://svn.apache.org/viewvc?rev=924558&view=rev
Log:
PIG-1293: pig wrapper script tends to fail if pig is in the path and PIG_HOME isn't set.

Modified:
    hadoop/pig/trunk/CHANGES.txt
    hadoop/pig/trunk/bin/pig

Modified: hadoop/pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=924558&r1=924557&r2=924558&view=diff
==============================================================================
--- hadoop/pig/trunk/CHANGES.txt (original)
+++ hadoop/pig/trunk/CHANGES.txt Wed Mar 17 23:41:29 2010
@@ -157,6 +157,9 @@ OPTIMIZATIONS
 
 BUG FIXES
 
+PIG-1293: pig wrapper script tends to fail if pig is in the path and PIG_HOME
+isn't set (aw via gates)
+
 PIG-1272: Column pruner causes wrong results (daijy)
 
 PIG-1275: empty bag in PigStorage read as null (daijy)

Modified: hadoop/pig/trunk/bin/pig
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/bin/pig?rev=924558&r1=924557&r2=924558&view=diff
==============================================================================
--- hadoop/pig/trunk/bin/pig (original)
+++ hadoop/pig/trunk/bin/pig Wed Mar 17 23:41:29 2010
@@ -52,7 +52,7 @@ for f in $@; do
 done
 
 # resolve links - $0 may be a softlink
-this="$0"
+this="${BASH_SOURCE-$0}"
 while [ -h "$this" ]; do
     ls=`ls -ld "$this"`
     link=`expr "$ls" : '.*-> \(.*\)$'`



Mime
View raw message