From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: tuhs-bounces@minnie.tuhs.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 192a88e0 for ; Wed, 5 Sep 2018 15:05:39 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 501A9A1AFA; Thu, 6 Sep 2018 01:05:38 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 5F8F0A1A25; Thu, 6 Sep 2018 01:05:13 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id C823CA1A24; Thu, 6 Sep 2018 01:05:09 +1000 (AEST) Received: from oclsc.com (oclsc.com [206.248.137.164]) by minnie.tuhs.org (Postfix) with SMTP id 57EE5A1A23 for ; Thu, 6 Sep 2018 01:05:07 +1000 (AEST) From: Norman Wilson To: tuhs@tuhs.org Date: Wed, 05 Sep 2018 11:04:41 -0400 Message-ID: <1536159885.28857.for-standards-violators@oclsc.org> Subject: Re: [TUHS] Cryptic Unix Commands X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Ron Natalie: I use the numbers but I think it stems from the days when kill didn't take the names. It's easier for me to remember -1 and -9 than to remember what the mnemonics are. ==== Me too. And not just the kill command; the (real) shell's trap command too. It's all just muscle memory, not a desire to save keystrokes. On the rare occasions when I need to send a post-modern signal like SIGSTOP or SIGCONT, I use the name. As an aside, why do modern kill and sh accept only the abbreviated form of the signal name, not the full name; e.g. kill -STOP is OK, kill -SIGSTOP an error? When we taught kill about that sometime in (I think) the 9th Edition era at Research, we allowed either form. I think it was Doug who insisted on it, and he was right. All this applies to shell commands, not to programs. It is just plain wrong to code kill(9, pid) in C. Norman Wilson Toronto ON