[daip] Problem in AIPSPATH.CSH

Ralph Marson rmarson at aoc.nrao.edu
Wed Mar 7 15:27:01 EST 2001


There is a problem in the AIPSPATH.CSH script that can occur 
at the AOC when used with the standard 'dot files'. It occurs because, 
for non-interactive shells the .tcshrc file has the following

  if ( $?prompt ) then           # "prompt" is set if shell has a tty
     set interact = 1
  else
     set interact = 0
     alias echo /bin/true        # echoing to non-tty may cause process to fail
  endif

If the user then has, further down in their .tcshrc file, the line
  source /AIPS/LOGIN.CSH
(which calls $AIPS_ROOT/AIPSPATH.CSH script) then the line 
   setenv PATH `echo $tempath | sed 's/:$//'`
will result in the users PATH being reset to an empty value. 

I have encountered a similar problem in aips++ and have recently
changed the aips++ login scripts to use /bin/echo instead of
echo. This ignores any aliases for the echo command.

Ralph



More information about the Daip mailing list