Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 1996 01:17:04 -0700 (PDT)
From:      Paul Traina <pst@Shockwave.COM>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1454: /bin/sh bug handling <<[n] FD processing
Message-ID:  <199608010817.BAA12194@precipice.shockwave.com>
Resent-Message-ID: <199608010820.BAA03630@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1454
>Category:       bin
>Synopsis:       /bin/sh bug handling <<[n] FD processing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug  1 01:20:02 PDT 1996
>Last-Modified:
>Originator:     Paul Traina
>Organization:
Shockwave Engineering
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

Recent 2.2 current circa July 15th source code.

>Description:

The manual page for sh states that invoking a program with:

	program 2<<EOT
	some stuff
	EOT

should send the text down file descriptor #2 on the program.  It does not.

>How-To-Repeat:

#!/bin/sh
PGPPASSFD=2 pgp +batch=on -ft 2<<EOT
mysecretpassword
EOT

does not work

but

#!/bin/bash
PGPPASSFD=2 pgp +batch=on -ft 2<<EOT
mysecretpassword
EOT

does.

>Fix:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608010817.BAA12194>