tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Thomas.Meyer" <meyert () dla-marbach ! de>
To: tru64-unix-managers
Subject: SUMMARY: ksh oddities with DUX4.0
Date: Wed, 12 Nov 1997 15:59:34 +0000	[thread overview]
Message-ID: <96078619210399.tru64-unix-managers.marc@archive.invalid> (raw)

"long time ago", on MAR 12th, 97, I wrote:

We'd like to report a problem with Digital Unix 4.[0|0A|0B] and would like to
know if others have had similar experiences.

Sometimes ksh would behave very oddly, saying that /bin/pwd was not found, e.g.

myserv:/# cd mnt
sh[4]: /bin/pwd:  not found
myserv:#

This was never seen during the time we had DUX3.X.Y! It can be solved, though,
by simply trying again and again  :-(

Maybe it has sth. to do with the following ksh funtion (quite useful: the
current working directory, abbreviated when too long, in your prompt):

myserv:/# typeset -f
function xcd
{
    "cd" $*
    OLDPWD="$LOGPWD"
    LOGPWD="$PWD"
    PWD="`/bin/pwd`"
    if [ ${#PWD} -gt 32 ]
    then
       typeset -L15 PWDl=$PWD   # Mitte des Pfades ausblenden
       typeset -R15 PWDr=$PWD
       PWD="${PWDl}..${PWDr}"
    fi
}
myserv:/# 


Would be glad if it was a known bug...

Regards,

----------------------------------------------------------------

Finally, DEC support people found out that the problem lies in my function
writing the PWD variable, which is supposed to be a reserved one.

After I rewrote the function xcd the problem didn't appear any more:

function xcd
{
    "cd" $*
    OLDPWD="$LOGPWD"
    LOGPWD="`/bin/pwd`"
    XPWD="$LOGPWD"
    if [ ${#XPWD} -gt 32 ]
    then
       typeset -L15 PWDl=$XPWD  # Mitte des Pfades ausblenden
       typeset -R15 PWDr=$XPWD
       XPWD="${PWDl}..${PWDr}"
    fi
}


It has to be mentioned that the problem never appeared under Digital UNIX 3.0 -
3.2G.



Regards,

        Thomas Meyer, EDV-Systemadministrator
          email: Thomas.Meyer@dla-marbach.de
          smail: Deutsches Literaturarchiv Marbach
                 Schillerhoehe 8-10
                 D-71672 Marbach
        Telefon: +49-7144-848-141
            Fax:          ...-387
            WWW: http://www.dla-marbach.de

                 reply	other threads:[~1997-11-12 15:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox