Skip to content
Snippets Groups Projects
Commit 923c488e authored by Boman Romain's avatar Boman Romain
Browse files

more vars

parent dd47862a
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ fi
# -version initiale
#LD_LIBRARY_PATH=$(printf %s "$LD_LIBRARY_PATH" | awk -v RS=: '{ if (!arr[$0]++) {printf("%s%s",!ln++?"":":",$0)}}')
# -version "boucle"
for var in PATH LD_LIBRARY_PATH
for var in PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE CPATH INFOPATH NLSPATH LIBRARY_PATH MANPATH CLASSPATH
do
cmd="$var=\$(printf %s \"\$$var\" | awk -v RS=: '{ if (!arr[\$0]++) {printf(\"%s%s\",!ln++?\"\":\":\",\$0)}}')"
eval $(echo $cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment