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: NonePriority: 5 - Normal
Severity: 1 - WishStatus: Done
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Add a New Comment (Rich MarkupRich 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 File(s):

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
  • -unavailable- added by chet (Updated the item)
  • -unavailable- added by pcordes (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to 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 UTCchetStatusNone=>Done
    Mon 21 Aug 2006 09:56:33 AM UTCzetuxAttached File-=>Added execute_cmd.c.patch, #10563
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup