Gentoo Archives: gentoo-dev

From: Luke-Jr <luke7jr@×××××.com>
To: gentoo-dev@l.g.o
Cc: AJ Armstrong <aja@×××××××××××××.com>
Subject: Re: [gentoo-dev] [Fwd: BASH feature: directory jumping w/o 'cd']
Date: Sat, 13 Mar 2004 00:13:38
Message-Id: 200403130013.04906.luke7jr@yahoo.com
In Reply to: Re: [gentoo-dev] [Fwd: BASH feature: directory jumping w/o 'cd'] by AJ Armstrong
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Friday 12 March 2004 01:54 am, AJ Armstrong wrote:
5 > I'd have issues with it. The main problem is that if bash currently
6 > receives a directory where it is expecting a command, it fails
7 > transparently.
8 >
9 > In bash scripts, or complex pipelined or xarg'd one-liners, when I make
10 > an error that passes a directory instead of a command, I want it to
11 > fail. I do _not_ want it to interpret that as a cd, move to another
12 > directory, and carry on with what it was doing - say renaming or deleting.
13 Perhaps it could be provided as an alternate binary meant for shell usage
14 only. Then any BASH scripts would continue to use the unmodified patch.
15 -----BEGIN PGP SIGNATURE-----
16 Version: GnuPG v1.2.3 (GNU/Linux)
17
18 iD8DBQFAUlIPZl/BHdU+lYMRAnLNAJ9Uw8z+rCMTk23ml9iQqMyYVKXqwgCdEinD
19 HdChOE7miRv7JyDh4BFE6sI=
20 =FCdL
21 -----END PGP SIGNATURE-----
22
23 --
24 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] [Fwd: BASH feature: directory jumping w/o 'cd'] Mike Frysinger <vapier@g.o>