Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14093
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Piotr Grzybowski <narsil.pl@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: (enhancement request) Limiting depth of xtrace enabled |
| Date | Sun, 6 May 2018 16:09:02 +0200 |
| Lines | 192 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.13467.1525615755.27995.bug-bash@gnu.org> (permalink) |
| References | <8bb3d965-63b8-9a53-ab86-533b8d313dc8@nvidia.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 (Apple Message framework v1085) |
| Content-Type | multipart/mixed; boundary=Apple-Mail-18--299787294 |
| X-Trace | usenet.stanford.edu 1525615755 570 208.118.235.17 (6 May 2018 14:09:15 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | lmod-users@lists.sourceforge.net, Carl Ponder <cponder@nvidia.com> |
| To | bug-bash <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=AS6p/KDLNQs+uWQqqmpgskPKauVa7KZ5tK1Oedbs5eU=; b=hCo5lfDS5OFhDtH9OWS3bmbwjEEJfueyKQzblWvkXe+3ojC/Gj25XOgRRwABHgxtJs zN2+1WTLn/zdOqn4MBtDvlgCuMPuVQL9hKWlt7wat8g6Y2DVN2FvWm70o+gUcHMaMkkp QAaArE2YzGzSLwFN81huKynpNobBBSWQUULJaPga/V0f8f/1aponeNFC5yO/YxrBxGU8 AuQ7XNjP8axiJIzYXfICT4YcuAo78WQqSIcZR3ik0nu4cZK7BBqw+bj1gVTzyaYBAidf kouwwS8zlVOVug8Ks3rGlYwpPEq6YJE7I28PPXchChXucds1h0UoxbBPVsSaKwGMlhLL LXfg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=AS6p/KDLNQs+uWQqqmpgskPKauVa7KZ5tK1Oedbs5eU=; b=UBP8r+hLLxqAe7uuMEYaH7H4Latanxd1aa0XGmXTT+cTEz3dQ+4hCapzv6I/n3A6tb OK5atuj1/I+rArf0KT2BJ2/UioZuZ/FpK2HgPBI415k2D+05RoIxWAhsyvBn4c/EqqN/ fICedrtW8XZUJNJ2cMbKU409uPTo/6RWKPW4eRAPZeaAJ1JzbJARswb0GPB5N9x+xmY0 7UPNg0BAKy1+qkCE9je4gwroFOeUONOM6DlxrDTGmDWS8B5jFiYrnWYXtouXJsXkFO0N XgfAtyhg2V9k/FiKYZrqfn9GV7xsPjgGlmVCHyL0CBkjX6pUt9mRDQJUTn04HsNSy7bs SoLQ== |
| X-Gm-Message-State | ALQs6tBhWl/Nbkzc8iQ1NImqZELYsS3iVdsb2SdQcrJFQdvCephkY8Hy OvtgXNUjRb0+xTkjyW4ISAL/vQ== |
| X-Google-Smtp-Source | AB8JxZpJtyZg9QrcWPu2xWjf95nsX/WQso3hgkAxVTxj1AAaekstW+JeHGkIPMQA4+Nr1to4sOfY8g== |
| X-Received | by 2002:a2e:998c:: with SMTP id w12-v6mr11662968lji.64.1525615747117; Sun, 06 May 2018 07:09:07 -0700 (PDT) |
| In-Reply-To | <8bb3d965-63b8-9a53-ab86-533b8d313dc8@nvidia.com> |
| X-Mailer | Apple Mail (2.1085) |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2a00:1450:4010:c07::232 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14093 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
ehlo,
I kind of like it. It also bothered me from time to time, not in the case of lmod though.
I enclose the patch. Note that it does not work with depth of functions, since it is not the way xtrace subsystem prints the levels. Different patch is needed if you want to control function frames depth.
I am not not familiar with lmod, I tested with:
module()
{
eval `$LMOD_CMD sh "$@"`
}
although I am not sure about the logic of those scripts in Lmod-7.7.tar.bz2:./init and at first glance I do not like this eval, the patch will make bash behave in this case as you need (as far as I could tell).
cheers,
pg
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: (enhancement request) Limiting depth of xtrace enabled Piotr Grzybowski <narsil.pl@gmail.com> - 2018-05-06 16:09 +0200
csiph-web