Re: docs/87351: Jail building instructions don't work as describ

看板FB_doc作者時間20年前 (2005/10/27 04:47), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串11/17 (看更多)
On 2005-10-26 13:38, "Eli K. Breen" <bsd@unixforge.net> wrote: > Call me madcap, but wouldn't it make more sense to have the base case > example match the default shell, with exceptions for other shells as the > side-comments? > Given how little of this script/instructions need to change to suit csh, > something like... > > [...] > #For csh > set D=/here/is/the/jail > #For bourne shells (sh,bash,...) > D=/here/is/the/jail > cd /usr/src > mkdir -p $D > [...] > > or > > [...] > #For csh > set D=/here/is/the/jail > #For bourne shells (sh,bash,...) > # D=/here/is/the/jail > cd /usr/src > mkdir -p $D > [...] Nope. csh(1) is terrible for scripting and only mildly annoying for interactive use. I'd accept something that lists *two* sets of commands that can be copied to a file and minimally changed to alter the $D path, but intermixing scripts that run in sh(1), csh(1), zsh(1) or anything else is not very nice imho :/ _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
文章代碼(AID): #13N-j500 (FB_doc)
討論串 (同標題文章)
完整討論串 (本文為第 11 之 17 篇):
文章代碼(AID): #13N-j500 (FB_doc)