[MacPorts] #15488: wrap text to terminal width

MacPorts noreply at macports.org
Wed Jun 11 01:56:45 PDT 2008


#15488: wrap text to terminal width
--------------------------------------+-------------------------------------
  Reporter:  ryandesign at macports.org  |       Owner:  raimue at macports.org
      Type:  defect                   |      Status:  assigned           
  Priority:  Normal                   |   Milestone:  MacPorts base bugs 
 Component:  base                     |     Version:  1.7.0              
Resolution:                           |    Keywords:                     
--------------------------------------+-------------------------------------
Comment (by ryandesign at macports.org):

 This works:

 {{{
 $ port info zlib
 zlib @1.2.3, Revision 1 (archivers)
 Variants:    examples, (+)universal

 zlib is designed to be a free, general-purpose, legally unencumbered,
 lossless data-compression
 library for use on virtually any computer hardware and operating system.
 Homepage:    http://www.zlib.net/

 Platforms: darwin, freebsd
 Maintainers: landonf at macports.org ryandesign at macports.org
 openmaintainer at macports.org
 $
 }}}

 But this doesn't:

 {{{
 $ echo zlib | xargs port info
 Warning: Unable to get terminal size, using 80x24!
 zlib @1.2.3, Revision 1 (archivers)
 can't read "env(COLUMNS)": no such variable
     while executing
 "set maxlen $env(COLUMNS)"
     (procedure "wrap" line 5)
     invoked from within
 "wrap $vars 0 [string repeat " " 13] 0"
     invoked from within
 "if {[llength $fields]} {
             # Show specific fields
             puts [join $fields $field_sep]
         } else {
             # If we weren't as..."
     ("uplevel" body line 130)
     invoked from within
 "uplevel 1 $block"
     (procedure "foreachport" line 16)
     invoked from within
 "foreachport $portlist {
         puts -nonewline $separator
         # If we have a url, use that, since it's most specific
         # otherwise try to m..."
     (procedure "action_info" line 8)
     invoked from within
 "$action_proc $action $portlist [array get global_options]"
     (procedure "process_cmd" line 86)
     invoked from within
 "process_cmd $remaining_args"
     invoked from within
 "if { [llength $remaining_args] > 0 } {

     # If there are remaining arguments, process those as a command

     # Exit immediately, by default, unless..."
     (file "/mp/bin/port" line 3165)
 Variants:    $
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/15488#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list