Debian Bug report logs - #397601
posh: "type" builtin missing

version graph

Package: posh; Maintainer for posh is Clint Adams <clint@debian.org>; Source for posh is src:posh.

Reported by: Stephane Chazelas <stephane@artesyncp.com>

Date: Wed, 8 Nov 2006 12:18:27 UTC

Severity: wishlist

Found in version posh/0.5

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Clint Adams <schizo@debian.org>:
Bug#397601; Package posh. Full text and rfc822 format available.

Acknowledgement sent to Stephane Chazelas <stephane@artesyncp.com>:
New Bug report received and forwarded. Copy sent to Clint Adams <schizo@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Stephane Chazelas <stephane@artesyncp.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: posh: "type" builtin missing
Date: Wed, 08 Nov 2006 12:13:38 +0000
Package: posh
Version: 0.5
Severity: important


bug found following a discussion in comp.unix.shell.

The POSIX command "type" is not in posh. This command has to be
built in as it must report about functions, builtins, keywords
and aliases.

For some reason, it was apparently removed in an early version,
which is incorrect.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19-rc4
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages posh depends on:
ii  debconf [debconf-2.0]        1.5.8       Debian configuration management sy
ii  libc6                        2.3.6.ds1-7 GNU C Library: Shared libraries

posh recommends no packages.

-- debconf information:
  posh/sh: false



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#397601; Package posh. Full text and rfc822 format available.

Acknowledgement sent to Clint Adams <schizo@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #10 received at 397601@bugs.debian.org (full text, mbox):

From: Clint Adams <schizo@debian.org>
To: Stephane Chazelas <stephane@artesyncp.com>, 397601@bugs.debian.org
Subject: Re: Bug#397601: posh: "type" builtin missing
Date: Wed, 8 Nov 2006 08:04:51 -0500
> bug found following a discussion in comp.unix.shell.
> 
> The POSIX command "type" is not in posh. This command has to be
> built in as it must report about functions, builtins, keywords
> and aliases.
> 
> For some reason, it was apparently removed in an early version,
> which is incorrect.

"type" is an X/Open extension; note the XSI marking in the POSIX
standard.  Since it is not required by POSIX or by debian policy, posh
doesn't implement it.

Am I misinformed?



Information forwarded to debian-bugs-dist@lists.debian.org, Clint Adams <schizo@debian.org>:
Bug#397601; Package posh. Full text and rfc822 format available.

Acknowledgement sent to Stephane Chazelas <Stephane@artesyncp.com>:
Extra info received and forwarded to list. Copy sent to Clint Adams <schizo@debian.org>. Full text and rfc822 format available.

Message #15 received at 397601@bugs.debian.org (full text, mbox):

From: Stephane Chazelas <Stephane@artesyncp.com>
To: Clint Adams <schizo@debian.org>
Cc: 397601@bugs.debian.org
Subject: Re: Bug#397601: posh: "type" builtin missing
Date: Wed, 8 Nov 2006 13:42:08 +0000
On Wed, Nov 08, 2006 at 01:04:51PM -0000, Clint Adams wrote:
> > bug found following a discussion in comp.unix.shell.
> > 
> > The POSIX command "type" is not in posh. This command has to be
> > built in as it must report about functions, builtins, keywords
> > and aliases.
> > 
> > For some reason, it was apparently removed in an early version,
> > which is incorrect.
> 
> "type" is an X/Open extension; note the XSI marking in the POSIX
> standard.  Since it is not required by POSIX or by debian policy, posh
> doesn't implement it.
[...]

Indeed, you're right, sorry about that. That means that a POSIX
script has no mean to verify whether a command exists or not.

I wonder why POSIX left it out. It was in the Bourne shell since
SVR2 and certainly in ksh from the start.

Best regards,
Stephane



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#397601; Package posh. Full text and rfc822 format available.

Acknowledgement sent to Clint Adams <schizo@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #20 received at 397601@bugs.debian.org (full text, mbox):

From: Clint Adams <schizo@debian.org>
To: Stephane Chazelas <Stephane@artesyncp.com>, 397601@bugs.debian.org
Subject: Re: Bug#397601: posh: "type" builtin missing
Date: Wed, 8 Nov 2006 18:06:30 -0500
> Indeed, you're right, sorry about that. That means that a POSIX
> script has no mean to verify whether a command exists or not.
> 
> I wonder why POSIX left it out. It was in the Bourne shell since
> SVR2 and certainly in ksh from the start.

Maybe they couldn't decide between 'command -v', 'type', 'whence',
'which', or any other builtins out there.  You could try asking on the
austin list, or file a defect report.

Alternately, you could lobby to get 'type' or your favorite option added
explicitly to debian policy.



Severity set to `normal' from `important' Request was from Clint Adams <schizo@debian.org> to control@bugs.debian.org. (Sun, 06 May 2007 20:51:09 GMT) Full text and rfc822 format available.

Severity set to `wishlist' from `normal' Request was from Clint Adams <schizo@debian.org> to control@bugs.debian.org. (Fri, 12 Dec 2008 18:21:03 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 19:37:37 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.