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


Groups > gnu.bash.bug > #14093

Re: (enhancement request) Limiting depth of xtrace enabled

From Piotr Grzybowski <narsil.pl@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: (enhancement request) Limiting depth of xtrace enabled
Date 2018-05-06 16:09 +0200
Message-ID <mailman.13467.1525615755.27995.bug-bash@gnu.org> (permalink)
References <8bb3d965-63b8-9a53-ab86-533b8d313dc8@nvidia.com>

Show all headers | 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


Thread

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

csiph-web