helpThe GNU Bourne-Again SHell - Support: sr #105519, possibility to execute directories.


sr #105519: possibility to execute directories.

Submitted by:  S├ębastien MICHEL <zetux>
Submitted on:  Mon 21 Aug 2006 09:56:33 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 26 Nov 2013 02:35:08 AM UTC, comment #1:

There's now an autocd feature for interactive mode. Presumably it didn't exist back in 2006, but it does now, so this item should be closed.

shopt -s autocd

Peter Cordes <pcordes>
Mon 21 Aug 2006 09:56:33 AM UTC, original submission:


I wish to execute directories under bash. Actually if you want to go to a directory you need to execute the builtin command "cd". Why can we juste execute a directory.
polaris:~# /etc/
polaris:/etc# ../usr/

You can find attached patch example for execute_cmd.c (made from bash 3.1-5 sources from debian/sid package).

Sebastien MICHEL

S├ębastien MICHEL <zetux>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #10563:  execute_cmd.c.patch added by zetux (622B - application/octet-stream - execute_cmd.c patch to execute directories)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by pcordes (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Thu 12 Nov 2015 01:29:12 PM UTC chet StatusNone => Done
    Mon 21 Aug 2006 09:56:33 AM UTC zetux Attached File- => Added execute_cmd.c.patch, #10563
        Carbon-Copy- => Added -email is unavailable-

    Back to the top

    Powered by Savane 3.3