Gentoo Archives: gentoo-dev

From: Jason Rhinelander <jason@××××××××××××××××.com>
To: Drake Wyrm <wyrm@×××××.com>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [Fwd: BASH feature: directory jumping w/o 'cd']
Date: Fri, 12 Mar 2004 03:35:08
Message-Id: 40512FDF.5050809@gossamer-threads.com
In Reply to: Re: [gentoo-dev] [Fwd: BASH feature: directory jumping w/o 'cd'] by Drake Wyrm
1 That was sarcasm, right?
2
3 -- Jason Rhinelander
4 -- Gossamer Threads, Inc.
5
6
7 Drake Wyrm wrote:
8 > On Thu, 2004-03-11, 18:28:34 -0500, in
9 > <2591.68.56.194.157.1079047714.squirrel@×××××××××××××××××.org>, Fred
10 > Gates <dabozz@××××××××××××.org> wrote:
11 >
12 > [snip]
13 >
14 >>I was a big fan of the old '4DOS' utility for DOS. One of my favorite
15 >>features was where from a command line you could simply type a
16 >>directory, and it would go there. I.e., instead of typing
17 >>
18 >>cd \Windows
19 >>
20 >>You, in 4DOS could just type
21 >>
22 >>\Windows
23 >>
24 >>In BASH, if you try this, it simply complains that "___ is a
25 >>directory". In other words, it's a distinct unhandled case. Why not
26 >>use this case for something useful?
27 >>
28 >>So, I made some mods to bash to make this in fact work like it did in
29 >>4DOS. You only have to patch one file, 'execute_cmd.c'
30 >
31 > [snip]
32 >
33 > Beautiful. It makes so much sense, I wonder why it wasn't included in
34 > the original Bourne shell. After all, execute permissions on a directory
35 > mean that you can 'cd' to it, right? What better action to take when
36 > "executing" a directory?
37 >
38
39 --
40 gentoo-dev@g.o mailing list