1 # $FreeBSD: head/Keywords/shell.ucl 362833 2014-07-24 17:10:57Z bapt $
3 # MAINTAINER: portmgr@FreeBSD.org
7 # Handle adding and remove a path to a shell binary into /etc/shells
8 # it replaces the following code:
11 # @exec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
12 # @unexec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
16 cp /etc/shells /etc/shells.bak
17 (grep -v %D/%@ /etc/shells.bak; echo %D/%@) > /etc/shells
21 cp /etc/shells /etc/shells.bak
22 grep -v %D/%@ /etc/shells.bak > /etc/shells