[comp.unix.questions] ksh 88 problem

crouch@axion.bt.co.uk (Chris Rouch) (07/11/90)

I've just built the 11/16/88 version of ksh and have noticed the
following anomaly. When trying to use filename expansion on a single
file an additional space is tagged on the end. This never used to happen
with the 06/03/86 version. Does anyone have a fix for this?

Regards,

Chris
-----------------------------------------------------------------------------
Chris Rouch                                             crouch@axion.bt.co.uk
RT3131, BTRL, Martlesham Heath, Ipswich, England.              +44 473 646093

We came, we saw, we lost on penalties.

pbm@hpfcdc.HP.COM (Peter McLain) (07/13/90)

>I've just built the 11/16/88 version of ksh and have noticed the
>following anomaly. When trying to use filename expansion on a single
>file an additional space is tagged on the end. This never used to happen
>with the 06/03/86 version. Does anyone have a fix for this?

    I believe this is a feature of ksh88.  If you want to turn it off,
    look in sh/edit.c near the end of ed_expand().  In the last #ifdef
    tenex section, ' ' is appended to "out".  You could also experiment
    with #undef tenex  (it is turned on if you are making ESH or VSH), but
    this may get rid of other features you want.


Peter McLain                                          Hewlett-Packard
                                                      3404 East Harmony Road
pbm%hpfclg@hplabs.HP.COM                              Fort Collins
UUCP: hplabs!hpfcla!pbm                               CO          80525-9599