From owner-freebsd-bugs Mon Aug 14 09:18:01 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id JAA25038 for bugs-outgoing; Mon, 14 Aug 1995 09:18:01 -0700 Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id JAA24954 for ; Mon, 14 Aug 1995 09:16:52 -0700 Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.144.4]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id RAA27950; Mon, 14 Aug 1995 17:57:10 +0200 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id RAA14439; Mon, 14 Aug 1995 17:57:01 +0200 Date: Mon, 14 Aug 1995 17:57:01 +0200 Message-Id: <199508141557.RAA14439@caramba.cs.tu-berlin.de> To: Garrett Wollman Cc: FreeBSD-bugs@freebsd.org Subject: bin/683: cron(8) In-Reply-To: <9508141532.AA11236@halloran-eldar.lcs.mit.edu> References: <199508131617.SAA13412@localhost> <9508141442.AA11143@halloran-eldar.lcs.mit.edu> <199508141459.QAA11761@caramba.cs.tu-berlin.de> <9508141532.AA11236@halloran-eldar.lcs.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: bugs-owner@freebsd.org Precedence: bulk Garrett Wollman writes: >You missed the point. It is none of cron's business to be parsing >shell command lines, period. > >What should cron do with this: > >------------------------------------ >SHELL=/usr/site/bin/bash >30 4 1 * * help >------------------------------------ > >Or how about this: > >------------------------------------ >SHELL=/usr/local/bin/foosh >15 0 * * */2 grimblepritz garply foobiebletch >------------------------------------ >(where in the `foosh' language, `garply' means the same as `>' in >Bourne shell) > >You are putting knowledge into utility programs which have no business >applying them; this is simply the Wrong Thing. Ok, ok. Add a check for $SHELL (/bin/sh or /bin/csh). Carefully users don't put shell builtin's into crontab or uses funny shells (grimblepritz, emacs, perl etc.) Wolfram