MarDiehl / stdlib_os

MIT License
12 stars 2 forks source link

Windows: expandvars function #14

Open ghost opened 3 years ago

ghost commented 3 years ago

On Windows, expandvars function works with parameter '$TMP', but it fails with parameter '$PATH'

From https://github.com/MarDiehl/stdlib_os/blob/master/test/stdlib_test.f90#L33

  print*, '$TMP: ', expandvars('$TMP')
  print*, '$PATH: ', expandvars('$PATH')

The output

 $TMP: C:\Users\myname\AppData\Local\Temp
 $PATH: $PATH