Revision 2054,
804 bytes
checked in by epeisach, 35 years ago
(diff) |
Changes to be compatible with 6.3B [brlewis]
|
Line | |
---|
1 | # Prototype file sourced by "remove" alias |
---|
2 | # $Author: epeisach $ |
---|
3 | # $Source: /afs/dev.mit.edu/source/repository/packs/dotfiles/env_remove,v $ |
---|
4 | # $Header: /afs/dev.mit.edu/source/repository/packs/dotfiles/env_remove,v 1.2 1989-08-18 14:59:26 epeisach Exp $ |
---|
5 | |
---|
6 | set dir = `awk '$3 == "'$SUBJECT'" {print $8}' /usr/tmp/attachtab` |
---|
7 | if ($status || $#dir == 0) then |
---|
8 | echo "Usage: !:0 filesystem" |
---|
9 | echo "The remove command (with a filesystem name) works when issued" |
---|
10 | echo "from the window created using the setup command (with that" |
---|
11 | echo "filesystem name)" |
---|
12 | unsetenv SUBJECT |
---|
13 | else |
---|
14 | echo " The $SUBJECT environment is being cleared up" |
---|
15 | cd / |
---|
16 | if (-r $dir/.detachrc) then |
---|
17 | source $dir/.detachrc |
---|
18 | endif |
---|
19 | /bin/athena/detach $SUBJECT |
---|
20 | exit |
---|
21 | endif |
---|
22 | |
---|
23 | unset dir |
---|
Note: See
TracBrowser
for help on using the repository browser.