[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The _ env variable
From: |
Daniel Mills |
Subject: |
Re: The _ env variable |
Date: |
Wed, 10 Feb 2021 14:41:47 -0500 |
The "_" variable expands to the last argument of the most recently executed
command
On Wed, Feb 10, 2021 at 2:28 PM Peng Yu <pengyu.ut@gmail.com> wrote:
> Hi,
>
> It looks like that "_" is set to the path of the program being called.
>
> Where is this behavior officially defined? Why is this variable
> useful, given argv[0] is also the path to the program being called?
> Thanks.
>
> --
> Regards,
> Peng
>
>