Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Support credential setting for shells other than bash #29

Open
nonspecialist opened this issue May 17, 2014 · 0 comments
Open

Support credential setting for shells other than bash #29

nonspecialist opened this issue May 17, 2014 · 0 comments

Comments

@nonspecialist
Copy link
Collaborator

Right now, credulous emits statements to set environment variables in bash/zsh -- the shells are widespread, but not the only ones in use.

We should also support a range of other popular shells, in a way that makes it easy to extend the syntaxes we emit.

At first glance, we should probably also handle:

  • vanilla Bourne shell (no export FOO=bar syntax)
  • ash and its variants (same syntax as Bourne)
  • Windows Powershell (yes, Windows, though I don't know the mechanism)
  • csh/tcsh etc (though there are religious debates about the use of those)

Actually, supporting bash/zsh/vanilla Bourne/ash etc could be done by just changing the emitted text to be:

FOO=bar; export FOO

instead of:

export FOO=bar

because that syntax is supported by all the bourne-originated shells.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant