1 # $FreeBSD: head/Keywords/shell.ucl 370490 2014-10-08 21:39:47Z ak $
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
20 cp /etc/shells /etc/shells.bak
21 (grep -v ${file} /etc/shells.bak; echo ${file}) > /etc/shells
29 cp /etc/shells /etc/shells.bak
30 grep -v ${file} /etc/shells.bak > /etc/shells