Gentoo Archives: gentoo-dev

From: Michael Frysinger <vapier@×××.edu>
To: gentoo-dev@g.o
Subject: [gentoo-dev] /etc/shells
Date: Tue, 20 Aug 2002 10:00:58
Message-Id: 034701c2485a$760a7ad0$0200a8c0@vapier
1 shouldnt /etc/shells contain only valid shells that
2 exist on the local machine ? so after default
3 installs, /etc/shells should really only have /bin/bash
4 and /bin/sh ... and then whenever a shell in app-shells
5 gets emerged, it provides a /etc/shells file that is created
6 in the following manner:
7 { grep -v ^/bin/SHELL /etc/shells;
8 echo "/bin/SHELL"
9 } > ${D}/etc/shells
10 then when the install is run, you get a ._cfg_0000_shells
11 file for the user to handle.
12
13 right now, on my machines, /etc/shells lists:
14 really installed: sh bash sash
15 not installed: tcsh esh zsh
16 not in gentoo: ksh
17
18 so should the default /etc/shells be updated to have just bash/sh,
19 and all the shell ebuilds add themselves when emerged ?
20 -mike