Skip to content

Empty lines produced in output of "module load bad2/body" with small term width #381

@Anais-G

Description

@Anais-G

Describe the bug

To follow issue #379 and for the developing of term_width configuration, there are empty lines produced in the output of "module load bad2/body" with small terminal width (from 6 to 12 columns included).

Example

Steps to reproduce the behavior:

$ module load bad2/body --width=6
Loading bad2/body
  Module ERROR: invalid command name "bad-command"
      
    
    while executing
    "bad-command"
      
    
    (file "/home/user/modules/testsuite/modulefiles/bad2/body" line 29)
    Please contact <root@localhost>

Modules version and configuration

$ module config
Modules Release 4.6.1+termwidth-307-gf6ccf0ee (2021-01-28)

- Config. name ---------.- Value (set by if default overridden) ---------------
advanced_version_spec     0
auto_handling             0
avail_indepth             1
avail_report_dir_sym      1
avail_report_mfile_sym    1
collection_pin_version    0
collection_target         <undef>
color                     never
colors                    hi=1:db=2:tr=2:se=2:er=91:wa=93:me=95:in=94:mp=1;94:di=94:al=96:sy=95:de=4:cm=92:aL=100:L=90;47:H=2:F=41:nF=43:S=46:sS=44
contact                   root@localhost
csh_limit                 4000
extended_default          0
extra_siteconfig          <undef>
home                      /usr/local/Modules (env-var)
icase                     never
ignored_dirs              CVS RCS SCCS .svn .git .SYNC .sos
implicit_default          1
implicit_requirement      1
locked_configs            
mcookie_version_check     1
ml                        1
nearly_forbidden_days     14
pager                     /usr/bin/less -eFKRX
rcfile                    <undef>
run_quarantine            <undef>
search_match              starts_with
set_shell_startup         1
shells_with_ksh_fpath     
silent_shell_debug        <undef>
siteconfig                /usr/local/Modules/etc/siteconfig.tcl
tag_abbrev                auto-loaded=aL:loaded=L:hidden=H:hidden-loaded=H:forbidden=F:nearly-forbidden=nF:sticky=S:super-sticky=sS
tag_color_name            
tcl_ext_lib               /usr/local/Modules/lib/libtclenvmodules.so
term_background           dark
term_width                0
unload_match_order        returnlast
verbosity                 normal
wa_277                    0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions