bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./script doesn't work in completion function


From: Chet Ramey
Subject: Re: ./script doesn't work in completion function
Date: Mon, 22 Jan 2024 10:14:02 -0500
User-agent: Mozilla Thunderbird

On 1/22/24 1:53 AM, Martin D Kealey wrote:
Hi Oğuz

On Sun, 21 Jan 2024 at 03:20, Oğuz <oguzismailuysal@gmail.com> wrote:

     $ echo echo foo bar >s
     $ chmod +x s


You seem to have created an invalid executable. It seems that scripts
without a #! can only be run with help from the debugger library;

This isn't correct. I don't know how you managed to enable debugging mode,
unless it was enabled in the interactive shell you're running, but since
you did, the subshell inherited it and attempted to start the debugger.
Scripts without a `#!' don't have anything to do with the debugger.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]