comparison rc/tcsh @ 245:f74212d79fcb

Ensures we're running tcsh.
author Edho Arief <edho@myconan.net>
date Mon, 07 Nov 2011 12:30:06 +0700
parents b6b9a47de016
children 3a0bd37d37c0
comparison
equal deleted inserted replaced
244:b6b9a47de016 245:f74212d79fcb
1 #!/usr/bin/env tcsh 1 #!/usr/bin/env tcsh
2
3 # Ensures it's tcsh
4 if ( ! $?tcsh ) then
5 exit
6 endif
2 7
3 # Ensures this script is running on terminal. Otherwise exit immediately. 8 # Ensures this script is running on terminal. Otherwise exit immediately.
4 if ( ! $?prompt ) then 9 if ( ! $?prompt ) then
5 exit 10 exit
6 endif 11 endif