Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#13001 closed defect (fixed)

port file command returns the path to the portfile with \r at end

Reported by: ebgssth@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts 1.6
Component: base Version: 1.5.0
Keywords: Cc: ebgssth@…, afb@…, ryandesign (Ryan Carsten Schmidt)
Port:

Description

$ ls `port file libevent`
: No such file or directory/sources/rsync.macports.org/release/ports/devel/libevent/Portfile

$ port file libevent | sed -n l
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libevent/Portfile\r$

This problem makes diffing Portfile harder. When I'm editing Portfile and like to do diff, I need to do something like

port cat portname > Portfile.orig
port edit portname
diff -u Portfile.orig `port file portfile | tr "\r" " "` 

Change History (12)

comment:1 Changed 17 years ago by afb@…

This problem is not present in trunk, when using the bash shell.

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ebgssth@… afb@… ryandesign@… added
Milestone: MacPorts base bugs
Owner: changed from macports-dev@… to ryandesign@…

comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Agree, I cannot reproduce this on MacPorts trunk.

comment:4 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: port file comamnd returns the path to the portfile with ¥rport file command returns the path to the portfile with \r at end

comment:5 Changed 17 years ago by ebgssth@…

Resolution: fixed
Status: closedreopened

This problem seems to only occur in OS X 10.3. On 10.4 I cannot reproduce this, too.

comment:6 Changed 17 years ago by afb@…

Can't reproduce this on Mac OS X 10.3 with MacPorts 1.5.0 either.

I think your install is broken ?

comment:7 Changed 17 years ago by ebgssth@…

I'm using 1.520 on Mac OS X 10.3.9, just re-installed MacPorts.

comment:8 Changed 17 years ago by ebgssth@…

Re-installed OS X 10.3 and MacPorts 1.520 but this bug still remains.

comment:9 Changed 17 years ago by ebgssth@…

verified this problem was fixed in macports 1.600. Please close this ticket.

comment:10 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

comment:11 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:12 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.6
Note: See TracTickets for help on using tickets.