Skip to content

Install script seems to need bash #680

@tvandera

Description

@tvandera
  • [] Did you use the latest version of GEF from dev branch?
  • [n/a ] Is your bug specific to GEF (not GDB)? - Try to reproduce it running gdb -nx
  • Did you read the documentation first?
  • Did you check issues (including
    the closed ones) - and the PR?

Step 1: Describe your environment

  • Operating System / Distribution: Ubuntu 20.04
  • Architecture: x86 64bit
  • GEF version:
GEF: (Standalone)
SHA1(/home/vanderaa/.gef-e95b072f5684857ffd3d3c95c3369f83cdba0dee.py): 743f638904c44c815ed815b7530c0d07069e775e
GDB: 9.2
GDB-Python: 3.8

Step 2: Describe your problem

Steps to reproduce

Install command fails with sh:

$ wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | sh
sh: 6: test: unexpected operator

Works with bash:

$ wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | bash

/bin/sh is dash on Ubuntu:

$ dpkg -S /bin/sh
diversion by dash from: /bin/sh
diversion by dash to: /bin/sh.distrib
dash: /bin/sh
$ dpkg -s dash | grep Version
Version: 0.5.10.2-6

When adding set -x around line 6:

$ sh gef.sh
+ test  == dev
gef.sh: 7: test: unexpected operator
+ set +x

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions