Index: trunk/ippTasks/detrend.process.pro
===================================================================
--- trunk/ippTasks/detrend.process.pro	(revision 12369)
+++ trunk/ippTasks/detrend.process.pro	(revision 12370)
@@ -154,5 +154,5 @@
 
     ## output log filename
-    if ($WORKDIR == NULL)
+    if ("$WORKDIR" == "NULL")
       $outroot = `pwd`
     else
@@ -166,5 +166,5 @@
 
     $run = detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA $ARGS
-    if ($WORKDIR != NULL)
+    if ("$WORKDIR" != "NULL")
       $run = $run --workdir $outroot
     end
@@ -276,5 +276,5 @@
 
     # XXX push this into the filerules?
-    if ($WORKDIR == NULL)
+    if ("$WORKDIR" == "NULL")
       $outroot = `pwd`
     else
@@ -288,5 +288,5 @@
 
     $run = detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --camera $CAMERA $ARGS
-    if ($WORKDIR != NULL)
+    if ("$WORKDIR" != "NULL")
       $run = $run --workdir $outroot
     end
