bug-bash
[Top][All Lists]
Advanced

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

Re: Missing documentation "-bash_input"


From: Oğuz
Subject: Re: Missing documentation "-bash_input"
Date: Wed, 29 Nov 2023 05:14:49 +0200

On Wednesday, November 29, 2023, Klaus Frank <klaus.frank@posteo.de> wrote:

> One thing though, I probably should already know that, but why is a $0
> needed even though a command was already specified? Shouldn't the command
> itself be $0?


No, $0 is used in error messages:

     $ bash -c '"' foo
    foo: -c: line 1: unexpected EOF while looking for matching `"'
    $

You wouldn't want the entire script printed for every error.


-- 
Oğuz


reply via email to

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