From owner-freebsd-hackers Fri Jan 27 08:35:23 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id IAA21743 for hackers-outgoing; Fri, 27 Jan 1995 08:35:23 -0800 Received: from mailhost.tue.nl (mailhost.tue.nl [131.155.2.5]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id IAA21737 for ; Fri, 27 Jan 1995 08:35:22 -0800 Received: from terra.stack.urc.tue.nl (terra.stack.urc.tue.nl [131.155.140.128]) by mailhost.tue.nl (8.6.9/8.6.9) with SMTP id RAA22930; Fri, 27 Jan 1995 17:34:43 +0100 Received: from skynet.stack.urc.tue.nl by terra.stack.urc.tue.nl (4.1/1.53) id AA03097; Fri, 27 Jan 95 17:34:31 +0100 Received: (erik@localhost) by skynet.stack.urc.tue.nl (8.6.9/8.6.4) id RAA08316; Fri, 27 Jan 1995 17:34:04 +0100 From: erik@stack.urc.tue.nl (Erik Manders) Message-Id: <199501271634.RAA08316@skynet.stack.urc.tue.nl> Subject: a [t]csh oddity. To: hackers@FreeBSD.org Date: Fri, 27 Jan 1995 17:34:03 +0100 (MET) Cc: marcz@stack.urc.tue.nl, unix@stack.urc.tue.nl X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1205 Sender: hackers-owner@FreeBSD.org Precedence: bulk A friend of mine was porting tcsh to 2.0R and was irritated when, after typing './tcsh' he got '-/tcsh' as process name from ps. He chased down the bug (took all afternoon) and finally traced it to csh.c. He also tried 'csh' with identical results. This is apparently a historical 'feature' since FreeBSD csh, SunOS 4.1.1 csh, SVR2 csh and tcsh all suffer the same effect. SVR4 does not, as far as we know. The diff for removing the 'feature' from csh is enclosed. Our question is: is this a deliberate feature, a bug nobody ever bothered to chase down, or something else? This assignment takes place when setting signals for an interactive shell. *** csh.c.bak Fri Jan 27 17:01:16 1995 --- csh.c Fri Jan 27 17:02:36 1995 *************** *** 448,454 **** --- 448,456 ---- shpgrp = getpgrp(); opgrp = tpgrp = -1; if (setintr) { + #ifdef WHAT_IS_THIS **argv = '-'; + #endif if (!quitit) /* Wary! */ (void) signal(SIGQUIT, SIG_IGN); (void) signal(SIGINT, pintr); Erik Manders erik@stack.urc.tue.nl -- "Any sufficiently advanced technology is indistinguishable from magic." --Arthur C. Clarke Finger me at erik@blade.stack.urc.tue.nl for my PGP public key.