Skip to content
Snippets Groups Projects
Commit 0a276866 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

CONFIG: improve shell env handling of paths with spaces (#1007, #1008)

- foamCleanPath now only splits the environment variable on ':', which
  allows other directories with spaces or '(..)' etc to pass through
  without major issue.

- The filter arguments are split on whitespace, colons or semi-colons.
parent 20050efb
  • Mark OLESEN @mark

    mentioned in issue #1007 (closed)

    ·

    mentioned in issue #1007 (closed)

    Toggle commit list
  • Zilong @Enginear ·

    I substituted the code in the foamCleanPath file. The syntax error warning is gone. But it shows a new error as shown here. Capture

    How could I solve this?

    Thank you very much.

  • Author Maintainer

    Check your permissions. Something like ls -l /opt/OpenFOAM/OpenFOAM-v1806/bin

    You will get content that perhaps looks like this

    -rwxr-xr-x 1 mol users 6362 Oct 16 01:13 /home/mol/openfoam/OpenFOAM-v1806/bin/foamCleanPath

    The leading characters show the permissions (user, group, other). You'll need to use chmod to adjustment so that the file is readable and executable. Eg, chmod a+rx /opt/OpenFOAM/OpenFOAM-v1806/bin/foamCleanPath

    You should be able to find some basic Unix/Linux information on the internet, now that you know what you are looking for.

    Cheers, /mark

  • Mark OLESEN @mark

    mentioned in commit 1a519622

    ·

    mentioned in commit 1a519622

    Toggle commit list
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment