Netcat-openbsd package from ubuntu-minimal doesn't work with echo

Bug #545075 reported by soulard morgan
This bug report is a duplicate of:  Bug #544935: netcat-openbsd exits too soon. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-meta (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-minimal

netcat-openbsd from ubuntu-minimal doesn't work with the echo command.

netcat-traditional from Universe repository works but you have to remove netcat-openbsd, which depends on ubuntu-minimal.

ProblemType: Bug
Architecture: amd64
Date: Tue Mar 23 14:25:08 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: gnome-terminal 2.29.6-0ubuntu4
ProcEnviron:
 LANGUAGE=fr_FR:fr:en_GB:en
 LANG=fr_FR.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: gnome-terminal
Uname: Linux 2.6.32-16-generic x86_64

Revision history for this message
soulard morgan (soulard-morgan) wrote :
Revision history for this message
Phillip Susi (psusi) wrote :

Are you saying that ubuntu-minimal should not depend on netcat-openbsd, or that netcat-openbsd needs fixed to work with echo?

Changed in ubuntu-meta (Ubuntu):
status: New → Incomplete
doru001 (headset001)
summary: - Nectat-openbsd package from ubuntu-minimal doesn't work with echo
+ Netcat-openbsd package from ubuntu-minimal doesn't work with echo
Revision history for this message
doru001 (headset001) wrote :

According to this thread:
http://ubuntuforums.org/showthread.php?t=1792546
the manual TALKING TO SERVERS example:
$ echo -n "GET / HTTP/1.0\r\n\r\n" | nc host.example.com 80
does not work unless -q-1 is specified in nc, but it works for nc in netcat-traditional. It appears that nc in netcat-openbsd ends immediately after it sends the echoed string to the server.

Also, echo -e is required, so the manual should also be corrected. This is also the case for netcat-traditional.

doru001 (headset001)
Changed in ubuntu-meta (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
doru001 (headset001) wrote :

As the above mentioned thread (http://ubuntuforums.org/showthread.php?t=1792546) says, this issue has been corrected in Natty:
https://bugs.launchpad.net/ubuntu/+source/netcat-openbsd/+bug/544935

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.