Gdbinit icon indicating copy to clipboard operation
Gdbinit copied to clipboard

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

Open tyilo opened this issue 13 years ago • 4 comments

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

tyilo avatar Aug 01 '12 17:08 tyilo

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

fedterzi avatar Oct 10 '12 09:10 fedterzi

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?

gdbinit avatar May 08 '13 10:05 gdbinit

Yes it is set automatically in zsh:

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

tyilo avatar May 08 '13 10:05 tyilo

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

tyilo avatar May 08 '13 10:05 tyilo