Bug 19262 - Built-in command "typeset" gives erroneous error messages
Built-in command "typeset" gives erroneous error messages
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-10-17 11:34 EDT by Ray Stann
Modified: 2007-04-18 12:29 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-17 11:34:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ray Stann 2000-10-17 11:34:29 EDT
In converting shell scripts from ksh to bash, I discovered that "typeset", a built-in command, functions well but issues invalid error messages.  
For example:

typeset -L9 zzzz

is suppose to left justify data placed into "zzzz", and will truncate the data if it's more then 9 characters long.  In fact this works, but the 
following error message is also issued:

typeset: unknown option: '-L'

The work-around is as follows:

typeset -L9 somename 2>/dev/null

Thanks for your help is fixing this bug
Comment 1 Bernhard Rosenkraenzer 2000-10-18 13:35:18 EDT
Typeset doesn't have a -L option according to POSIX; the fact that it worked is
a bug and can't be reproduced in 7.0. ;)

Note You need to log in before you can comment on or make changes to this bug.