[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference unxa::cde

Title:CDE on Digital UNIXonment - CDE
Notice:CDE on Digital UNIX - for CDE on VMS, please see Note 1.3
Moderator:UNXA::SYSTEM
Created:Tue Nov 23 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:660
Total number of notes:2674

634.0. "dtksh & getopts" by EVTAI1::ROCHE () Wed Apr 16 1997 12:35


	could someone help me to explain why the scripts gives different
	result on dtksh versus ksh

#!/usr/dt/bin/dtksh
#
while getopts b option $@
do
  echo $option
done

	gives nothing when option used is +b

#!/bin/ksh
#
while getopts b option $@
do
  echo $option
done

	gives +b when option used is +b 


	Thanks
	Flavie
T.RTitleUserPersonal
Name
DateLines
634.1UNXA::BEUTENo good deed ever goes unpunished...Thu Apr 17 1997 12:2214
	It's a bug. Here's mail from the maintainer indicating that a
	QAR has been filed:


Hello Chris,

It's a bug in dtksh internal function b_getopts().
A QAR bug report was filed, CDE_DTKSH 52556, which will be
fixed next release. 
Please use -b instead of +b to work around this problem. 

Wen-Jie