[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash-2.05.0(1) bug or new feature



On Tue, Aug 28, 2001 at 08:21:52PM -0700, Dan Wilder wrote:
> I've recently upgraded a number of systems to debian-woody, current
> as of a couple of days ago, and run into a bug or a new feature 
> (I hope not) in bash-2.05.0(1) or some related library.  This new
> feature confounds an untold number of shell scripts.
> 
> The bash "cd" builtin now apparently echos its new CWD to standard out.  
> It did not do this, at least as of version 2.01.1(1) as found in 
> debian-slink.
> 
> If I have a directory named "test", 
> 
> #!/bin/sh
> cd test
> 
> in a script produces:
> 
> /home/dan/test
> 
> as its output.  Well, that's OK, I don't really need the extra
> screen noise, but I can live with it.  
<snip>

> Is this a feature?  Am I going to have to re-write all shell scripts
> that assume a silent "cd" operation, or replace the stock build of
> bash with a local build?  Or switch to writing all scripts in csh?
> 
> Hoping somebody can furnish some insight.

All I can tell you is I'm running 2.05.0(1) on an LFS system and can't
replicate the behavior you are describing.  I compiled it from source
with a standard -

./configure --prefix=/usr --with-curses &&
  make &&
  make install 

hth,
kent




Reply to: