Opened 10 years ago

Closed 9 years ago

#4174 closed bug (fixed)

the default shell should be bash

Reported by: brecht Owned by: jackburton
Priority: normal Milestone: R1
Component: Applications/Terminal Version: R1/pre-alpha1
Keywords: Cc: brecht@…, planche2k@…
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Terminal's default shell is /bin/sh (1). While sh links to bash, this causes bash to mimic the startup behavior of sh (2). For example, bash will try to source ~/.profile instead of ~/.bash_profile. Is it necessary for bash to run in this compatibility mode.

(1) source:haiku/trunk/src/apps/terminal/Shell.cpp@29533#L272). (2) http://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html ("Invoked with name sh")

Change History (2)

comment:1 Changed 10 years ago by andreasf

Cc: planche2k@… added

comment:2 Changed 9 years ago by jackburton

Resolution: fixed
Status: newclosed

Should be fixed now. Terminal uses getpwuid() and uses the shell of the current user since hrev34902.

Note: See TracTickets for help on using tickets.