zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Timothy J Luoma <tjlists@bigfoot.com>, zsh-workers@sunsite.auc.dk
Subject: Re: why bother with 'cd .' ?
Date: Tue, 1 Jun 1999 05:42:16 +0000	[thread overview]
Message-ID: <990601054216.ZM9780@candle.brasslantern.com> (raw)
In-Reply-To: <199906010452.AAA16501@ocalhost>

On Jun 1, 12:52am, Timothy J Luoma wrote:
} Subject: why bother with 'cd .' ?
}
} cd . && \
}   CONFIG_FILES= CONFIG_HEADERS=./config.h ./config.status
} /bin/sh: .: bad directory

There are two cases in which I've ever seen a problem like that.  First
is when I've had two shells running, and in one shell removed the current
working directory of the other shell.  The second is when the current
working directory is on an NFS filesystem that is "soft" mounted, and
the NFS server is having trouble (too heavily loaded, perhaps).

If you're seeing this intermittently in otherwise ordinary directories,
I suggest you get your filesystem fsck'd soon.

} could we have something like
} 
} if [ "$PWD" != "$SRC_DIR" ]
} 
} 	cd $SRC_DIR
} fi

It's $(dir_top), and the test would have to be [ $(dir_top) != . ], but
if you can't "cd ." then "./config.status" isn't likely to work either.

The whole point of using variables like $(dir_top) is so that the command
to be run doesn't need to care about the variable's value.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


      reply	other threads:[~1999-06-01  5:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-01  4:52 Timothy J Luoma
1999-06-01  5:42 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=990601054216.ZM9780@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=tjlists@bigfoot.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).