We are getting closer to the problem (look at the forwarded mail in the
end of my reply). I am sure that mktexlsr (alias texhash) was the reason
in the other two cases as well.

The only thing that fires after "normal" completion of mktexlsr are the
commands in the trap line. Can you please try the following script
(executed by /bin/sh) on your system:

    #!/bin/sh
    trap 'echo "-->$a<--"; exit 0' 0 1 2 3 7 13 15
    a=hi

I guess that the output of this script is
--><--
instead of
-->hi<--
and that rm -rf behaves strange when called with "" as argument.
Maybe, you want to check this:

  #!/bin/sh
  mkdir $HOME/rmtest
  touch $HOME/rmtest/somefile
  cd $HOME/rmtest
  rm -rf ""
  find $HOME/rmtest -print

This should output the name of $HOME/rmtest and $HOME/rmtest/somefile.

Could you please check this?

Not to forget: many, many thanks for your efforts in anylyzing
this problem!

Thomas
---
>From [EMAIL PROTECTED]  Mon Jun 19 00:51:05 2000
MIME-Version: 1.0 (NeXT Mail 3.3 v148.2.1)
From: HB2 <[EMAIL PROTECTED]>
Date: Sun, 18 Jun 2000 18:50:41 -0400
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: texhash wiping out my harddisk

Gentlemen,

in the last few days I encountered the same problem reported by Ryan Scott.   
Having reinstalled the basic software three (3) times now - I am getting  
good at this - I am sure it has to do with teTeX 1.0.6.

My setup is the same, running Nextstep 3.3 on a NeXTstation plus the  
NS33CISCUserPatch3 (to fix Y2K problems) on top of it. I downloaded the teTeX  
files first from the primary site at then from DANTE. Installation went  
smoothly including texconfig (fools luck?) but when I ran texhash it wiped  
out my harddisk.

The third time I ran texhash from the "me"-account to prevent the root files  
to be erased; this time it wiped out all the files in my account but at  
least I could salvage some error messages from the console:



mktexlsr: /usr/local/teTeX/share/texmf: directory not writable. Skipping...
mktexlsr: Done.
rm: internal synchronization error: , ost+found, lost+found
rm: internal synchronization error: , rivate, private
rm: internal synchronization error: , cshrc, .cshrc
rm: internal synchronization error: , sr, usr
rm: internal synchronization error: , ev, dev
rm: internal synchronization error: , tc, etc
rm: internal synchronization error: , mp, tmp
rm: internal synchronization error: , ach, mach
rm: internal synchronization error: , dmach, sdmach
rm: internal synchronization error: , login, .login
rm: internal synchronization error: , profile, .profile
rm: internal synchronization error: , hidden, .hidden
rm: internal synchronization error: , path, .path
rm: internal synchronization error: , logout, .logout
rm: internal synchronization error: , NeXT, .NeXT
rm: internal synchronization error: , extLibrary, NextLibrary
rm: internal synchronization error: , extDeveloper, NextDeveloper
rm: internal synchronization error: , in, bin
rm: internal synchronization error: , dmach, odmach
rm: internal synchronization error: , extAdmin, NextAdmin
rm: internal synchronization error: , extApps, NextApps
rm: internal synchronization error: , e, me
rm: internal synchronization error: , oldcshrc, .oldcshrc




Apparently after mktexlsr finished its job it went on to erase all the files  
in my "me" account but could not erase the basic mach, NeXT, bin, etc files  
of the operating system - no permission as I ran texhash from "me". My path  
was (and still is, I have all the TeTeX files, 100 MB of them, still sitting  
in their default directory)


#
# this file gets executed by every shell you start
#

# make sure the path is correct
set path=(~/Unix/bin /usr/local/bin /usr/local/teTeX/bin /usr/ucb /bin  
/usr/bin /usr/sybase/bin ~/Apps /LocalApps /NextApps /NextAdmin  
/NextDeveloper/Demos .)

# setup umask to something reasonable
umask 022

# make the prompt palatable
if( ${?prompt} ) then
        set host=`hostname`
        set prompt="${host}> "
        set history=50
        # put aliases and other things down here
        alias ls ls -F
        alias mail /usr/ucb/Mail
endif


I might want to try to put /usr/localteTeX/bin first in the path but right  
now I am pretty tired of reinstalling all my software and files; at least I  
got another NeXTstation running teTeX 0.4 smoothly.

Any suggestions are most welcome,

Helmut Biritz

PS: Perhaps you might want to post this on the teTeX mail archive - right  
now I am not even sure that my e-mail works properly as I had to reinstall  
sendmail from scratch.

Reply via email to