helpThe GNU Bourne-Again SHell - Support: sr #108922, Feature request: per directory...


sr #108922: Feature request: per directory features

Submitted by:  None
Submitted on:  Thu 05 Nov 2015 04:28:33 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Wont Do
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


Fri 13 Nov 2015 02:34:22 AM UTC, comment #1:

The per-directory history you can do with a shell function that wraps `cd'.

The umask is a per-process attribute. If you want to source a file in each directory that has one, you can set the umask there, too.

Chet Ramey <chet>
Project Administrator
Thu 05 Nov 2015 04:28:33 PM UTC, original submission:


I'd like to suggest to enable per directory features. For example, I'd love to have per-dorectory history; so I can, for example, in a certain directory, have a history file available.

Also, per directory umask would be awesome.

Maybe have bash read a .bashrc file and, if it finds it, have it apply those features?

These would be very useful in a case like:

SysAdmin adds a webdev group and adds usera and userb to it. They work on /srv/www and they need to have a 002 umask there, in order to maintain file permissions and be able to work together.

Now, usera has a lot of management commands; which he repeats all the time. He uses git and it would be useful to have per-directory history so he can easily sort out the commands he uses ofteh.

Userb has been working on her own projects and needs help from usera. She asks him to cover for her today and tells him to check the history of her projects; located in /srv/www/userb.

-- end of example --

Just an example of how useful these two settings would be in a shared server environment. I am sure there're more settings that would be cool to have in a per-directory basis.



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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chet (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.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-13 chet StatusNone => Wont Do

    Back to the top

    Powered by Savane 3.4