Scripts and tools: Obsolete #!/bin/bash shebang #13510

pull DesWurstes wants to merge 1 commits into bitcoin:master from DesWurstes:master changing 22 files +28 −28
  1. DesWurstes commented at 12:12 PM on June 20, 2018: contributor

    #!/bin/bash assumes it is always installed to /bin/ which can cause issues #!/usr/bin/env bash searches the user's PATH to find the bash binary

    Details: https://github.com/dylanaraps/pure-bash-bible#obsolete-syntax

    I'm open to comments: Should I also fix #!/bin/sh?

  2. Obsolete #!/bin/bash shebang 000000035b
  3. fanquake added the label Scripts and tools on Jun 20, 2018
  4. ken2812221 approved
  5. ken2812221 commented at 12:34 PM on June 20, 2018: contributor

    utACK 000000035b20402dea3e8168165cd4eefdc97539

  6. promag commented at 1:23 PM on June 20, 2018: member

    utACK 0000000.

  7. luke-jr commented at 5:13 PM on June 20, 2018: member

    Did you bruteforce that hash? What did you use as the nonce?

  8. MarcoFalke commented at 5:21 PM on June 20, 2018: member

    @luke-jr

    git log --format=fuller 0000000 -1
    commit 000000035b20402dea3e8168165cd4eefdc97539
    Author:     DesWurstes <DesWurstes@users.noreply.github.com>
    AuthorDate: Wed Jun 20 12:54:54 2018 +0300
    Commit:     DesWurstes <DesWurstes@users.noreply.github.com>
    CommitDate: Wed Jun 20 11:12:41 2018 +0300
    
        Obsolete #!/bin/bash shebang
    
  9. DesWurstes commented at 5:22 PM on June 20, 2018: contributor

    Timestamp, it is two hours earlier than the actual commit time.

  10. practicalswift commented at 9:01 PM on June 20, 2018: contributor

    utACK 000000035b20402dea3e8168165cd4eefdc97539

    Nice hash!

  11. Empact commented at 5:45 PM on June 22, 2018: member

    utACK 0000000

  12. laanwj commented at 2:29 PM on June 24, 2018: member

    Agree that this is better. BSD ports tend to install bash to /usr/local, for example.

    I'm open to comments: Should I also fix #!/bin/sh?

    I'd say, no. /bin/sh is by definition the system shell. Use of the system shell has its own issues (like the script having to be compatible with 80's shell dialect, the lowest common denominator of all shells), but the location is not one of them.

    utACK https://github.com/bitcoin/bitcoin/commit/000000035b20402dea3e8168165cd4eefdc97539

  13. laanwj merged this on Jun 24, 2018
  14. laanwj closed this on Jun 24, 2018

  15. laanwj referenced this in commit 03f3925bac on Jun 24, 2018
  16. hebasto referenced this in commit 0936e2596b on Dec 6, 2018
  17. zkbot referenced this in commit 43ac2062f9 on Oct 28, 2020
  18. zkbot referenced this in commit 84a5830aaa on Nov 9, 2020
  19. PastaPastaPasta referenced this in commit 9a930bca77 on Dec 16, 2020
  20. PastaPastaPasta referenced this in commit fe31933934 on Dec 18, 2020
  21. PastaPastaPasta referenced this in commit be4345ce12 on Dec 18, 2020
  22. Munkybooty referenced this in commit e5bc466bb3 on Aug 2, 2021
  23. Munkybooty referenced this in commit f0a0f3e118 on Aug 2, 2021
  24. Munkybooty referenced this in commit 5f65a76681 on Aug 3, 2021
  25. Munkybooty referenced this in commit e1d5797fb2 on Aug 5, 2021
  26. Munkybooty referenced this in commit 2c0d1ee1c5 on Aug 5, 2021
  27. Munkybooty referenced this in commit ff4892fee5 on Aug 8, 2021
  28. Munkybooty referenced this in commit 82e9af702a on Aug 11, 2021
  29. Munkybooty referenced this in commit f744ede646 on Aug 11, 2021
  30. Munkybooty referenced this in commit c3f109ccd0 on Aug 13, 2021
  31. Munkybooty referenced this in commit debac13960 on Aug 15, 2021
  32. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me