[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with N
From: |
João Eiras |
Subject: |
Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with Non-Zero Status |
Date: |
Sun, 1 Jan 2017 20:16:27 +0100 |
> It's the difference between a simple command, which has a line number, and
> a subshell command, which does not. The subshell command's line number is
> derived from the execution context, which is relative to the start of the
> function. The OP wants the subshell's line number to be absolute, like the
> simple command's, and not relative to the start of the function, as it is
> now.
I agree that line numbers should be consistent, specially when running
a script. Inconsistent line numbers have been now and then a problem
for me debugging my scripts.
- Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with Non-Zero Status,
João Eiras <=