Opened 20 years ago

Closed 19 years ago

#2327 closed defect (fixed)

output from "port list" piped to anything causes error

Reported by: ray@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

Toby Peterson asked me to file this here. I am running on a pre-release version of the next Mac OS X.

If I run "port list | head", then I get a very strange result:

% port list | head adium aqua/adium 0.52 The best multi-IM client for Mac OS X Affiche aqua/Affiche 0.6.0 Sticky notes for your desktop aquaterm aqua/aquaterm 0.3.2 AquaTerm is a viewer that displays vector graphics on Mac OS X audioslicer aqua/audioslicer 1.0.1 mp3 file splitter BiggerSQL aqua/BiggerSQL 1.2.3 SQL front-end to the postgresql DBMS BigSQL aqua/BigSQL 1.0 postgresql psql-like client in cocoa binclocken aqua/binclocken 1.5.1 useless floating binary LED clock for your desktop blender aqua/blender 20040216 3D modeler / renderer cotvnc aqua/cotvnc 1.3.6 Chicken of the VNC is a VNC client for Mac OS X cyberduck aqua/cyberduck 2.2 Cyberduck is an open source SFTP and FTP browser error writing "stdout": broken pipe

while executing

"puts $output"

("foreach" body line 23) invoked from within

"foreach {name array} $res {

array set portinfo $array

# XXX is this the right place to verify an entry? if {![info exists portinf..."

("search" arm line 10) invoked from within

"switch -- $action {

deps {

set nodeps true

# make sure a port was given on the command line if {![info exists portname]} ..."

(file "/opt/local/bin/port" line 175)

%

Change History (5)

comment:1 Changed 20 years ago by toby@…

This also occurs on Panther, so it's not a Tiger-specific issue.

comment:2 Changed 20 years ago by toby@…

Looks like

while {1} { puts "" }

produces the same problem.

comment:3 Changed 20 years ago by blb@…

* Bug 2295 has been marked as a duplicate of this bug. *

comment:4 Changed 19 years ago by pguyot (Paul Guyot)

Owner: changed from darwinports-bugs@… to pguyot@…

comment:5 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Fixed this by protecting calls to puts.

Note: See TracTickets for help on using tickets.