ksh93 off by one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ksh (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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='
typeset -Sh 'Color for warning messages' BLUE='38;
typeset -Sh 'Color for fatal messages' RED='38;
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: | ubuntu → ksh (Ubuntu) |
Just tested on the latest ksh93u+m and the issue appears to be fixed:
GREEN shared. Color for info messages.
BLUE shared. Color for warning messages.
RED shared. Color for fatal messages.
Can you please try with the latest (https:/ /launchpad. net/ubuntu/ +source/ ksh93u+ m) and report if you have any issues?
thanks.