mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
FIX: foamCleanPath wasn't working properly with etc/bashrc.
The call to foamCleanPath from etc/{bashrc,cshrc} passes all the wildcards
together as a single argument - causing nothing to be cleaned. Now split
the args on whitespace. Also added more IFS hacking to reduce forking.
This commit is contained in:
14
etc/bashrc
14
etc/bashrc
@ -175,11 +175,12 @@ wildCards="$FOAM_INST_DIR $HOME/$WM_PROJECT/$USER"
|
||||
cleanPath=`$cleanProg "$PATH" "$wildCards"` && PATH="$cleanPath"
|
||||
|
||||
#- Clean LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=`$cleanProg "$LD_LIBRARY_PATH" "$wildCards"`
|
||||
cleanPath=`$cleanProg "$LD_LIBRARY_PATH" "$wildCards"` && LD_LIBRARY_PATH="$cleanPath"
|
||||
|
||||
#- Clean MANPATH
|
||||
export MANPATH=`$cleanProg "$MANPATH" "$wildCards"`
|
||||
cleanPath=`$cleanProg "$MANPATH" "$wildCards"` && MANPATH="$cleanPath"
|
||||
|
||||
export PATH LD_LIBRARY_PATH MANPATH
|
||||
|
||||
# Source project setup files
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@ -208,14 +209,17 @@ SOURCE $WM_PROJECT_DIR/etc/apps/cint/bashrc
|
||||
cleanPath=`$cleanProg "$PATH"` && PATH="$cleanPath"
|
||||
|
||||
#- Clean LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH=`$cleanProg "$LD_LIBRARY_PATH"`
|
||||
cleanPath=`$cleanProg "$LD_LIBRARY_PATH"` && LD_LIBRARY_PATH="$cleanPath"
|
||||
|
||||
#- Clean MANPATH
|
||||
export MANPATH=`$cleanProg "$MANPATH"`
|
||||
cleanPath=`$cleanProg "$MANPATH"` && MANPATH="$cleanPath"
|
||||
|
||||
export PATH LD_LIBRARY_PATH MANPATH
|
||||
|
||||
#- Clean LD_PRELOAD
|
||||
if [ "$LD_PRELOAD" != "" ]; then
|
||||
export LD_PRELOAD=`$cleanProg "$LD_PRELOAD"`
|
||||
cleanPath=`$cleanProg "$LD_PRELOAD"` && LD_PRELOAD="$cleanPath"
|
||||
export LD_PRELOAD
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user