Commit 43fb5e13400f744bdbc41354b0181925237dc7f9

Authored by Jürgen Knödlseder
1 parent 5d0fc6b5

Do not expand "~" if it is not terminated by "/" (#3997)

Showing 1 changed file with 1 additions and 1 deletions
src/support/GTools.cpp
... ... @@ -289,7 +289,7 @@ std::string gammalib::expand_env(const std::string& arg)
289 289  
290 290 // If termination delimiter has been found then expand the
291 291 // environment variable
292   - if (i_end < result.length() || delim_idx == 4 || delim_idx == 5) {
  292 + if (i_end < result.length() || delim_idx == 4) {
293 293  
294 294 // Extract environment variable name
295 295 std::string name = result.substr(i_start, i_end-i_start);
... ...