Add error checks to @shell
Check errors from Lua io.* library calls to make it show useful error messages
when they do occur instead of ("attempt to index a nil value")
Submitted by: RhToad (in IRC) <andrew@tao173.riddles.org.uk>
Differential Revision: https://reviews.freebsd.org/D27154
Convert @shell from shell script to lua script
This makes @shell rootdir friendly and cross install friendly
as well as capsicumized.
Bonus: the /etc/shells is now only touched when needed
Reviewed by: manu, mat
Approved by: portmgr (mat)
Differential Revision: D26640
When updating /etc/shells, only remove existing entries that match the new
entry exactly. Otherwise we may clobber entries that contain the new entry
as a substring.
Reviewed by: bdrewery
Approved by: bdrewery
Sponsored by: EMC / Isilon Storage Division