Re: Are there users of ash's "pathopts"? Do other shells have such a thing?

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

 



On 4/3/23 13:35, Harald van Dijk wrote:
On 03/04/2023 10:35, Denys Vlasenko wrote:
But it's not necessary, right? chkmail() does not actually uses
pathopts. It can just call padvance_magic(..., 0)
so as to ignore them.

chkmail() does use pathopt. It is used to customise the message that gets printed:

         if (!changed && statb.st_mtime != *mtp) {
             outfmt(
                 &errout, snlfmt,
                 pathopt ? pathopt : "you have mail"
             );
         }

I missed this. Thank you.




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux