Public bug reported:

If one defines a type with variables incl. help message, the
corresponding man page for this type displays in DETAILS section
displays wrong help messages for variables.

Example:

#!/bin/ksh93
typeset -T Log_t=(
    typeset -Sh 'Color for info messages' GREEN='38;5;232;48;5;118' 
    typeset -Sh 'Color for warning messages' BLUE='38;5;21;48;5;118'
    typeset -Sh 'Color for fatal messages' RED='38;5;9;48;5;118'    

    function log {
        print -u2 "\E[1;$2m${ date +%T; } $1:\E[0m $3"
    }
    function info {
        _.log "INFO" ${_.GREEN} "$*"
    }   
    function warn {
        _.log "WARN" ${_.BLUE} "$*"
    }
    function fatal {
        _.log "FATAL" ${_.RED} "$*"
    }
)
Log_t -r log
log.info log test
Log_t --man
log.fatal DETAILS are wrong.
log.warn Look at GREEN

** Affects: ksh (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: ubuntu => ksh (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1392978

Title:
  ksh93 off by one

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ksh/+bug/1392978/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to