helpThe GNU Bourne-Again SHell - Support: sr #108103, Add a sha/md5 crytographic...


sr #108103: Add a sha/md5 crytographic digest/hash generation to verify scripts before execution - and other uses.

Submitted by:  None
Submitted on:  Wed 08 Aug 2012 06:24:15 PM UTC  
Category: NonePriority: 5 - Normal
Severity: 1 - WishStatus: Wont Do
Privacy: PublicAssigned to: None
Originator Email: -unavailable-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.


Thu 28 Nov 2013 04:06:01 AM UTC, comment #2:

I'd have to agree with Jonathan. You could make shell functions to wrap source and exec, and use them for files that might have changed.

Or you could put the "check-for-change and then execute" logic into a file, and have the possibly-updated file in another location. So you'd get the protection you want for just the files you do this for, without having to change every possible caller.

Peter Cordes <pcordes>
Fri 01 Nov 2013 01:16:22 AM UTC, comment #1:

Hi, this is my first post here, I really want to help with some code. In this case I can't figure out why this should be built-in in bash, if you can easily calculate the md5 or sha-1 of any file on the command line?

Jonathan Granade <webbie>
Wed 08 Aug 2012 06:24:15 PM UTC, original submission:

With the rise of services like dropbox, it makes it possible for a user to store 'shared' bashrc scripts in these services.

This is a feature request to add SHA or other cryptographic hash ability as a builtin so that for example a hash can be passed to an exec or source and a message can be printed to inform the user that the script has been modified.



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

Attach File(s):

No files currently attached


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)
  • -unavailable- added by webbie (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):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Nov 2015 02:32:34 AM UTCchetStatusNone=>Wont Do

    Back to the top

    Powered by Savane 3.1-cleanup1