[EMAIL PROTECTED] 19 Mar 2001 20:52:13 +0100
>> What happens when you do it the second time?
Unfortunately, .sh_history doesn't stay dead:
> /ncsu/tlroche> ksh
> $ unset HISTSIZE
> $ unset HISTFILE
> $ foo
> ksh: foo: not found
> $ bar
> ksh: bar: not found
> $ ls -alt | head
> total 11109
> -rw------- 1 tlroche ncsu 10050122 Mar 20 20:45 .sh_history
I've been running tramp a lot :-)
> -rw------- 1 tlroche ncsu 21 Mar 20 20:43 .ceminc-stat
> -rw------- 1 tlroche ncsu 0 Mar 20 20:43 .cemchk-run
> -rw------- 1 tlroche root 3149 Mar 20 19:25 .history
> drwxrwxrwx 43 tlroche root 6144 Mar 19 12:43 .
> -rwxr-xr-x 1 tlroche ncsu 397 Mar 19 00:42 junk.pl
> drwx------ 2 tlroche ncsu 2048 Mar 19 00:05 webassign
> drwx------ 14 tlroche ncsu 4096 Mar 19 00:04 www
> -rw------- 1 tlroche ncsu 4998 Mar 18 20:32 .mycshrc
> $ exit
> /ncsu/tlroche> ksh
> $ unset HISTSIZE
> $ unset HISTFILE
> $ foo
> ksh: foo: not found
> $ bar
> ksh: bar: not found
> $ ls -alt | head
> total 11109
> -rw------- 1 tlroche ncsu 10050188 Mar 20 20:46 .sh_history
> -rw------- 1 tlroche ncsu 21 Mar 20 20:43 .ceminc-stat
> -rw------- 1 tlroche ncsu 0 Mar 20 20:43 .cemchk-run
> -rw------- 1 tlroche root 3149 Mar 20 19:25 .history
> drwxrwxrwx 43 tlroche root 6144 Mar 19 12:43 .
> -rwxr-xr-x 1 tlroche ncsu 397 Mar 19 00:42 junk.pl
> drwx------ 2 tlroche ncsu 2048 Mar 19 00:05 webassign
> drwx------ 14 tlroche ncsu 4096 Mar 19 00:04 www
> -rw------- 1 tlroche ncsu 4998 Mar 18 20:32 .mycshrc
> $ exit
> /ncsu/tlroche> ls -alt | head
> total 11109
> -rw------- 1 tlroche ncsu 10050194 Mar 20 20:46 .sh_history
> -rw------- 1 tlroche ncsu 21 Mar 20 20:43 .ceminc-stat
> -rw------- 1 tlroche ncsu 0 Mar 20 20:43 .cemchk-run
> -rw------- 1 tlroche root 3149 Mar 20 19:25 .history
> drwxrwxrwx 43 tlroche root 6144 Mar 19 12:43 .
> -rwxr-xr-x 1 tlroche ncsu 397 Mar 19 00:42 junk.pl
> drwx------ 2 tlroche ncsu 2048 Mar 19 00:05 webassign
> drwx------ 14 tlroche ncsu 4096 Mar 19 00:04 www
> -rw------- 1 tlroche ncsu 4998 Mar 18 20:32 .mycshrc
But if I do
> /ncsu/tlroche> ksh
> $ unset HISTSIZE
> $ unset HISTFILE
> $ rm -f .sh_history
> $ ls -alt | head
> total 1295
> -rw------- 1 tlroche ncsu 70 Mar 20 20:51 .__afs80C8
> drwxrwxrwx 43 tlroche root 6144 Mar 20 20:51 .
> -rw------- 1 tlroche ncsu 21 Mar 20 20:43 .ceminc-stat
> -rw------- 1 tlroche ncsu 0 Mar 20 20:43 .cemchk-run
> -rw------- 1 tlroche root 3149 Mar 20 19:25 .history
> -rwxr-xr-x 1 tlroche ncsu 397 Mar 19 00:42 junk.pl
> drwx------ 2 tlroche ncsu 2048 Mar 19 00:05 webassign
> drwx------ 14 tlroche ncsu 4096 Mar 19 00:04 www
> -rw------- 1 tlroche ncsu 4998 Mar 18 20:32 .mycshrc
> $ foo
> ksh: foo: not found
> $ bar
> ksh: bar: not found
> $ ls -alt | head
> total 1295
> -rw------- 1 tlroche ncsu 98 Mar 20 20:51 .__afs80C8
> drwxrwxrwx 43 tlroche root 6144 Mar 20 20:51 .
> -rw------- 1 tlroche ncsu 21 Mar 20 20:43 .ceminc-stat
> -rw------- 1 tlroche ncsu 0 Mar 20 20:43 .cemchk-run
> -rw------- 1 tlroche root 3149 Mar 20 19:25 .history
> -rwxr-xr-x 1 tlroche ncsu 397 Mar 19 00:42 junk.pl
> drwx------ 2 tlroche ncsu 2048 Mar 19 00:05 webassign
> drwx------ 14 tlroche ncsu 4096 Mar 19 00:04 www
> -rw------- 1 tlroche ncsu 4998 Mar 18 20:32 .mycshrc
> $ exit
> /ncsu/tlroche> ls -alt | head
> total 1294
> drwxrwxrwx 43 tlroche root 6144 Mar 20 20:52 .
> -rw------- 1 tlroche ncsu 21 Mar 20 20:43 .ceminc-stat
> -rw------- 1 tlroche ncsu 0 Mar 20 20:43 .cemchk-run
> -rw------- 1 tlroche root 3149 Mar 20 19:25 .history
> -rwxr-xr-x 1 tlroche ncsu 397 Mar 19 00:42 junk.pl
> drwx------ 2 tlroche ncsu 2048 Mar 19 00:05 webassign
> drwx------ 14 tlroche ncsu 4096 Mar 19 00:04 www
> -rw------- 1 tlroche ncsu 4998 Mar 18 20:32 .mycshrc
> -rw------- 1 tlroche ncsu 4996 Mar 16 19:24 .mycshrc~
At least three outcomes are, at least theoretically, viable:
0 Make .sh_history disappear _during_ the tramp session.
This would be nice, but so far no one has made this happen.
1 Make .sh_history disappear _after_ exiting the tramp session.
This appears feasible. (Has anyone else tried this?) While inferior
to outcome 0 (one could still overquota during a tramp session), it
would at least stop .sh_history from growing across sessions.
2 Do nothing.
This is bad for those of us who both have quotas and who forget to
delete the .sh_history after tramp sessions.
Personally, I vote for outcome 1.
YMMV, [EMAIL PROTECTED]