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.
Showing
- bin/foamCleanPath 34 additions, 35 deletionsbin/foamCleanPath
- etc/bashrc 6 additions, 6 deletionsetc/bashrc
- etc/config.sh/ADIOS 1 addition, 1 deletionetc/config.sh/ADIOS
- etc/config.sh/ADIOS2 1 addition, 1 deletionetc/config.sh/ADIOS2
- etc/config.sh/CGAL 1 addition, 1 deletionetc/config.sh/CGAL
- etc/config.sh/FFTW 1 addition, 1 deletionetc/config.sh/FFTW
- etc/config.sh/aliases 8 additions, 8 deletionsetc/config.sh/aliases
- etc/config.sh/bash_completion 1 addition, 1 deletionetc/config.sh/bash_completion
- etc/config.sh/example/paraview 3 additions, 1 deletionetc/config.sh/example/paraview
- etc/config.sh/functions 18 additions, 15 deletionsetc/config.sh/functions
- etc/config.sh/gperftools 1 addition, 1 deletionetc/config.sh/gperftools
- etc/config.sh/hypre 1 addition, 1 deletionetc/config.sh/hypre
- etc/config.sh/mpi 5 additions, 5 deletionsetc/config.sh/mpi
- etc/config.sh/paraview 10 additions, 8 deletionsetc/config.sh/paraview
- etc/config.sh/petsc 1 addition, 1 deletionetc/config.sh/petsc
- etc/config.sh/settings 2 additions, 2 deletionsetc/config.sh/settings
- etc/config.sh/unset 6 additions, 6 deletionsetc/config.sh/unset
- etc/config.sh/vtk 1 addition, 1 deletionetc/config.sh/vtk
-
mentioned in issue #1007 (closed)
-
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
-
mentioned in commit 1a519622
Please register or sign in to comment