[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make "division by zero attempted" error message more informat
From: |
Wolfgang Laun |
Subject: |
Re: How to make "division by zero attempted" error message more informative? |
Date: |
Thu, 3 Mar 2022 17:25:50 +0100 |
This is not a bug. There's the help list (as you do know) for this kind of
question.
-W
On Thu, 3 Mar 2022 at 16:02, Peng Yu <pengyu.ut@gmail.com> wrote:
> I see something like this. But when this kind of command is called at
> multiple scripts. It is hard to tell where the error is from.
>
> $ awk -e '{ print 10/$1 }' <<< 0
> awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
>
> Is there a way to customize the error message so that I can know where the
> error is coming from? Thanks.
>
> --
> Regards,
> Peng
>
--
Wolfgang Laun