Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14093 > unrolled thread

Re: (enhancement request) Limiting depth of xtrace enabled

Started byPiotr Grzybowski <narsil.pl@gmail.com>
First post2018-05-06 16:09 +0200
Last post2018-05-06 16:09 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: (enhancement request) Limiting depth of xtrace enabled Piotr Grzybowski <narsil.pl@gmail.com> - 2018-05-06 16:09 +0200

#14093 — Re: (enhancement request) Limiting depth of xtrace enabled

FromPiotr Grzybowski <narsil.pl@gmail.com>
Date2018-05-06 16:09 +0200
SubjectRe: (enhancement request) Limiting depth of xtrace enabled
Message-ID<mailman.13467.1525615755.27995.bug-bash@gnu.org>

[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


[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web