Skip to content

Discussion

8ward edited this page Dec 28, 2017 · 2 revisions

Bash vs. Python

The Bash implementation was removed with commit 177b4dc.

Bash

  • More interesting in terms of doing more with less (cooler as a hack)
  • Native support for completion (no extra layer)
  • Allows to execute external commands, e.g. tasknote
  • Provides control structures for scripting, e.g. for ... (unless shell keywords are rebound, i.e. aliased)
  • Easy to use special prompt functions, like __git_ps1
  • Easy to integrate user configuration
  • More difficult to provide controlled environment
  • Not restricted enough, i.e. other commands still executable

Python

  • Testable
  • Easy to provide controlled environment (only offer subcommands etc.)
  • Can be suspended with fg
  • Resilient against shortcuts, e.g. info instead of information (taskwarrior), and other special syntaxes, e.g. /pattern/ (taskwarrior)

Clone this wiki locally