From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id B221A2921F for ; Sat, 6 Jul 2024 01:16:40 +0200 (CEST) Received: from gaff.inri.net ([168.235.71.243]) by 9front; Fri Jul 5 19:14:48 -0400 2024 Received: from [127.0.0.1] ([168.235.81.125]) by gaff; Fri Jul 5 19:14:48 -0400 2024 Date: Fri, 05 Jul 2024 19:14:46 -0400 From: Stanley Lieber To: 9front@9front.org In-Reply-To: <134D67B5C9704156217DD4C7B22C18DB@smtp.pobox.com> References: <134D67B5C9704156217DD4C7B22C18DB@smtp.pobox.com> Message-ID: <448F86A5-1884-42EE-B4BA-59AB746DCB35@stanleylieber.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: stable distributed ActivityPub factory-aware framework rails-scale generator Subject: Re: [9front] /bin/"" use of rc -c instead of eval Reply-To: 9front@9front.org Precedence: bulk On July 5, 2024 6:23:03 PM EDT, Romano wrote: >I use " and "" to review previous commands and execute them, and >I was puzzled when a previous 'cd' command didn't work=2E I >suspected it might be perhaps to 'cd' being a built-in, and >looking at the source code for "" my suspicion was confirmed=2E The >last line that executes the command is: rc -c $"_x > >Any reason why this isn't using eval instead so that rc built-ins >work (eval $"_x) > >P=2ES=2E There doesn't appear to be any man page for "" or ", and lookman >doesn't support "" either: > >cpu% lookman "" >usage: lookman key =2E=2E=2E >cpu% lookman '""' >usage: lookman key =2E=2E=2E >cpu% > these came straight from plan9port=2E i don't know the rationale for rc -c= vs eval=2E sl