tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Newbie Question? Repeated Incrementing in sh

Cannot do ftp while in tcsh ▻

Du command does not work on my system

In article <3771102B.281BF096@steria.fr>,
Pierre-Michel Ansel  <pierre-michel.ansel@steria.fr> wrote:
>This is probably due to the fact that the directory from which you
>try to execute the 'du' command has been erased/destroyed/deleted!.

>$ cd ..

On traditional Unix systems, if the current directory no longer exists,
`cd ..' will not work.

To my astonishment, I've just discovered that it *does* work on
Solaris and Linux.  Does anyone know how?  (I had a quick peruse of
include/linux/sched.h, expecting to find perhaps a per-process pointer
to the file table entry of the parent directory, as well as the current
directory, but there's nothing obvious.)

[ Note that I've cross-posted to comp.unix.internals, and directed
followups there. ]

Tim.
--
Tim Goodwin   | `I can't believe that someone is releasing
University of | something called "Unix" without something
Leicester, UK | called "/bin/sh".' -- Randal L. Schwartz

Original headers:

From: tjg@ltpcg.star.le.ac.uk (Tim J Goodwin)
Newsgroups: comp.unix.shell,comp.unix.internals
Subject: Re: Du command does not work on my system
Followup-To: comp.unix.internals
Date: 24 Jun 1999 11:58:58 +0100
Organization: University of Leicester, UK
Message-ID: <7kt31i$k0d$1@ltpcg.star.le.ac.uk>
References: <bC7c3.4134$4j2.52380@dummy.bahnhof.se>
  <3771102B.281BF096@steria.fr>

△ comp.unix.shell △

◅ Newbie Question? Repeated Incrementing in sh

Cannot do ftp while in tcsh ▻