felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1793779 - /felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expander.java
Date Thu, 04 May 2017 11:26:17 GMT
Author: gnodet
Date: Thu May  4 11:26:17 2017
New Revision: 1793779

URL: http://svn.apache.org/viewvc?rev=1793779&view=rev
Log:
[FELIX-5633][gogo][runtime] The file name generation should take ~ into account

Modified:
    felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expander.java

Modified: felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expander.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expander.java?rev=1793779&r1=1793778&r2=1793779&view=diff
==============================================================================
--- felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expander.java (original)
+++ felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expander.java Thu
May  4 11:26:17 2017
@@ -562,6 +562,14 @@ public class Expander extends BaseTokeni
             {
                 doubleQuoted = true;
             }
+            else if (c == '~')
+            {
+                Object home = evaluate.get("HOME");
+                if (home != null)
+                {
+                    buf.append(home.toString());
+                }
+            }
             else
             {
                 if ("*(|<[?".indexOf(c) >= 0 && !hasUnescapedReserved)



Mime
View raw message