From owner-freebsd-bugs Tue Feb 27 14:40: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 159FF37B71D for ; Tue, 27 Feb 2001 14:40:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1RMe2v55298; Tue, 27 Feb 2001 14:40:02 -0800 (PST) (envelope-from gnats) Received: from sentry.gw.tislabs.com (sentry.gw.tislabs.com [192.94.214.100]) by hub.freebsd.org (Postfix) with ESMTP id BC09F37B71B for ; Tue, 27 Feb 2001 14:30:50 -0800 (PST) (envelope-from rwatson@tislabs.com) Received: by sentry.gw.tislabs.com; id QAA28899; Tue, 27 Feb 2001 16:40:05 -0500 (EST) Received: from sproing.gw.tislabs.com(10.33.40.80) by sentry.gw.tislabs.com via smap (V5.5) id xma028865; Tue, 27 Feb 01 16:39:58 -0500 Received: (from rwatson@localhost) by sproing.gw.tislabs.com (8.11.2/8.11.2) id f1RLe0401051; Tue, 27 Feb 2001 16:40:00 -0500 (EST) (envelope-from rwatson) Message-Id: <200102272140.f1RLe0401051@sproing.gw.tislabs.com> Date: Tue, 27 Feb 2001 16:40:00 -0500 (EST) From: rwatson@freebsd.org Reply-To: rwatson@freebsd.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/25436: csh "nice" command does not behave in sync with usr.bin/nice Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25436 >Category: bin >Synopsis: csh builtin nice behaves improperly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 27 14:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 5.0-CURRENT i386 >Organization: NAI Labs >Environment: System: FreeBSD sproing.gw.tislabs.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Feb 27 15:45:03 EST 2001 rwatson@sproing.gw.tislabs.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: First off, the csh "nice" command has a different syntax than nice(1), as it uses a "+prio" instead of "prio" interface. This is probably acceptable as it is documented that way in the csh man page, as confusing as users may find that. However, what does worry me is that the csh nice command doesn't appear to work properly, and report errors correctly. >How-To-Repeat: (using tcsh as shell) sproing:~> nice -10 cat /dev/sndstat FreeBSD Audio Driver (newpcm) Feb 27 2001 15:39:57 Installed devices: pcm1: at io 0x534 irq 5 drq 1:0 (1p/1r channels duplex) sproing:~> nice +10 cat /dev/sndstat FreeBSD Audio Driver (newpcm) Feb 27 2001 15:39:57 Installed devices: pcm1: at io 0x534 irq 5 drq 1:0 (1p/1r channels duplex) sproing:~> /usr/bin/nice -10 cat /dev/sndstat FreeBSD Audio Driver (newpcm) Feb 27 2001 15:39:57 Installed devices: pcm1: at io 0x534 irq 5 drq 1:0 (1p/1r channels duplex) sproing:~> /usr/bin/nice --10 cat /dev/sndstat nice: setpriority: Permission denied I.e., the csh built-in nice failed to report the failure of the "nice -10" to set a low nice level. Maybe this is a feature...? >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message