Skip to content

*BSD/macOS do not have 'echo -e' #606

Open
@ghost

Description

BSD-derived systems ( {Free,Net,Open}BSD & macOS ) do not have echo -e. This causes oh-my-bash to fail in unexpected ways. It's a simple matter to fix it...but you should stop using it and use printf instead (and modifying your CONTRIBUTING guidelines). Here is a list of files that currently use it:

  • tools/autossh.sh
  • plugins/vagrant/vagrant.plugin.sh
  • completions/svn.completion.sh
  • lib/base.sh
  • lib/omb-prompt-base.sh
  • aliases/general.aliases.sh
  • aliases/general.aliases.md
  • themes/hawaii50/hawaii50.theme.sh
  • themes/pro/pro.theme.sh
  • themes/iterate/iterate.theme.sh
  • themes/dulcie/dulcie.theme.sh
  • themes/rana/rana.theme.sh
  • themes/powerline/powerline.base.sh
  • themes/nwinkler/nwinkler.theme.sh
  • themes/nwinkler_random_colors/nwinkler_random_colors.theme.sh
  • themes/agnoster/agnoster.theme.sh

As soon as I get done with what I'm currently working on, I'll attempt a fix and submit a pull request.

Alternatively, you can install GNU coreutils and

alias echo=/usr/local/bin/gecho

but that seems to be a pretty heavyweight solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions