Package: bash Version: 3.1dfsg-8 Severity: normal
Invoking sh from the fish shell has a different result to invoking fish from the bash shell. Several environment variables are set when sh is started from bash that are not set when it is started from fish. This has caused me problems, in particular with git not using the correct editor due to the $EDITOR variable not being set for it. The git commit command is a sh script. Starting from fish (Debian package 1.22.3-3) [EMAIL PROTECTED] ~> echo $EDITOR /usr/bin/vim [EMAIL PROTECTED] ~> sh sh-3.1$ env GREP_COLOR=97;45 SSH_AGENT_PID=5211 SHELL=/usr/bin/fish TERM=xterm-256color WINDOWID=37748751 HUSHLOGIN=FALSE XTERM_SHELL=/usr/bin/fish USER=lod SSH_AUTH_SOCK=/tmp/ssh-nOjLeK5164/agent.5164 XPSERVERLIST=:64 MAIL=/var/mail/lod PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin INPUTRC=/etc/fish/fish_inputrc PWD=/home/lod LANG=en_AU.UTF-8 XTERM_VERSION=XTerm(226) XTERM_LOCALE=en_AU.UTF-8 HOME=/home/lod SHLVL=3 LOGNAME=lod DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9Fqgh8tIUo,guid=13792319b9bb5ed90e01c800474a33e1 DISPLAY=:0.0 XAUTHORITY=/home/lod/.Xauthority _=/usr/bin/env [EMAIL PROTECTED] ~> bash [EMAIL PROTECTED]:~$ echo $EDITOR /usr/bin/vim [EMAIL PROTECTED]:~$ sh sh-3.1$ env GREP_COLOR=97;45 SSH_AGENT_PID=5211 TERM=xterm-256color SHELL=/usr/bin/fish HUSHLOGIN=FALSE WINDOWID=37748751 USER=lod XTERM_SHELL=/usr/bin/fish LS_COLORS= SSH_AUTH_SOCK=/tmp/ssh-nOjLeK5164/agent.5164 XPSERVERLIST=:64 PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin MAIL=/var/mail/lod _=/usr/bin/env PWD=/home/lod INPUTRC=/etc/fish/fish_inputrc EDITOR=/usr/bin/vim LANG=en_AU.UTF-8 XTERM_LOCALE=en_AU.UTF-8 XTERM_VERSION=XTerm(226) HISTCONTROL=ignoredups SHLVL=4 HOME=/home/lod LOGNAME=lod DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9Fqgh8tIUo,guid=13792319b9bb5ed90e01c800474a33e1 LESSOPEN=| /usr/bin/lesspipe %s DISPLAY=:0.0 LESSCLOSE=/usr/bin/lesspipe %s %s XAUTHORITY=/home/lod/.Xauthority -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (900, 'stable'), (700, 'testing'), (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Versions of packages bash depends on: ii base-files 4 Debian base system miscellaneous f ii debianutils 2.17 Miscellaneous utilities specific t ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand bash recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]