Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assemble command doesn't work when using a shell other than bash #3

Open
tyilo opened this issue Aug 1, 2012 · 4 comments
Open

assemble command doesn't work when using a shell other than bash #3

tyilo opened this issue Aug 1, 2012 · 4 comments

Comments

@tyilo
Copy link
Contributor

tyilo commented Aug 1, 2012

The assemble command calls shell which executes in the current shell which could be sh or in my case fish.

@fedterzi
Copy link

I second that. Doesn't work with zsh either. A fix would be appreciated :(

@gdbinit
Copy link
Owner

gdbinit commented May 8, 2013

The shell is provided by gdb itself.
@ gdb/cli/cli-cmds.c
if ((user_shell = (char *) getenv ("SHELL")) == NULL)
user_shell = "/bin/sh";

Are fish or zsh setting that environment variable?

@tyilo
Copy link
Contributor Author

tyilo commented May 8, 2013

Yes it is set automatically in zsh:

$ echo $SHELL
/opt/local/bin/zsh

@tyilo
Copy link
Contributor Author

tyilo commented May 8, 2013

My current work-around is alias gdb='SHELL=/bin/bash gdb' in .zshrc.

cooljeanius referenced this issue in cooljeanius/dotgdb Jun 16, 2013
…opard

Attempt to detect the correct processor type under Snow Leopard's gdb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants