SUMMARY: lost+found entries

From: Pete Geenhuizen <pgeenhuizen_at_pobox.homeunix.net>
Date: Wed Feb 12 2003 - 08:34:20 EST
I got the answer I wanted within 5 minutes of posting the question.

Judging by some of the answers I got I guess that I didn't pose the
question properly.  I know where and how the entries are added to
lost+found, that wasn't the issue the question was how to deal with the
entries based on how ls and cd were re-acting.

The answer is "it's the shell stupid!" and how # is interpreted.

In csh/tcsh, which I use most of the time, the # as a directory or as part
of a directory name is handled as just another character and ls and cd
react as expected, sh and ksh on the other hand treat # as a special
character and have to be protected with either a backslash or quotes.

Thanks to

Vandevegt, James Matthew (Jim)
Tim Pointing
joe.fletcher@btconnect.com
Marty Davis
Andrew J Caines
Paul Clayton
Vberg Mats
Alan Bradley
Steve Elliott


Pete Geenhuizen said:
> I just found several directories in /lost+found, and when I cd into any
> of them I find my self in /, if I do an ls -l of any of the directories
> it returns a list of /lost+found.  See abreviate example below.
>
> Anyone run into this?
> Question is what to what to do?
>
> This is Solaris 8, and I've seen it before in 2.6, never had a chance to
> pursue it then, but I sure would like to figure it out now and deal with
> it.
>
> Thanks.
>
> Pete
>
> # cd /lost+found
> # ls -l
> drwx-r-xr-x   2  root  other   1024 Sep   2 03:35 #017699
> drwx-r-xr-x   2  root  other   4608 Sep   2 03:35 #017726
> drwx-r-xr-x   2  root  other   4608 Aug  26 02:23 #069369
> drwx-r-xr-x   2  root  other  12288 Aug  19 02:23 #096723
> ...
> drwx-r-xr-x   2  root  other  68096 Sep   2 03:35 #242235
> drwx-r-xr-x   2  root  other   2048 Sep   2 03:35 #254247
>
> # ls -l #017699
> drwx-r-xr-x   2  root  other   1024 Sep   2 03:35 #017699
> drwx-r-xr-x   2  root  other   4608 Sep   2 03:35 #017726
> drwx-r-xr-x   2  root  other   4608 Aug  26 02:23 #069369
> drwx-r-xr-x   2  root  other  12288 Aug  19 02:23 #096723
> ...
> drwx-r-xr-x   2  root  other  68096 Sep   2 03:35 #242235
> drwx-r-xr-x   2  root  other   2048 Sep   2 03:35 #254247
> # cd #017699
> # pwd
> /
> #
>

-- 
"Unencumbered by the thought process"
--1992-2000 Click and Clack presidential campaign slogan


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/


Random Thought:
--------------
Time is nature's way of making sure that everything doesn't happen at
once.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Feb 12 08:37:24 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:03 EST