From ae0718a0f5edcc46e4f2f78dd25d718f2d96df38 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 3 Apr 2017 08:31:04 +0200 Subject: [PATCH] BUG: avoid absolute path for 'lsof' - has different locations on different systems (eg, /usr/bin/lsof or /sbin/lsof) --- etc/cshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/cshrc b/etc/cshrc index a8278c526c..c814a2f45c 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -42,7 +42,7 @@ setenv WM_PROJECT_VERSION plus # - If this does not produce the desired result, please set one of the fallback # values to an appropriate path. # -setenv FOAM_INST_DIR `/usr/bin/lsof +p $$ |& \ +setenv FOAM_INST_DIR `lsof +p $$ |& \ sed -n -e 's@[^/]*@@' -e 's@/'$WM_PROJECT'[^/]*/etc/cshrc@@p'` # setenv FOAM_INST_DIR $HOME/$WM_PROJECT # setenv FOAM_INST_DIR /opt/$WM_PROJECT