tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Bourne sh: Execute Command in "if" Condition and Negate Return Value?

Homework help ▻

How can sourced script determine own name?

In article <8g0t3o$6aa$1@nntp.hq.eso.org>,
Alexis Huxley <ahuxley@eso.org> wrote:
>        MYNAME=what_goes_here_???

This is horrid, but...

    ls -ut .profile .dtprofile | sed 1q

Tim.
--
Tim Goodwin   | "Not ideal, I grant you, but life's
Leicester, UK | like that." -- Ian Batten

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: How can sourced script determine own name?
Date: 18 May 2000 17:07:14 +0100
Message-ID: <8g14g8$a0h$1@ltpcg.star.le.ac.uk>
References: <8g0t3o$6aa$1@nntp.hq.eso.org>

△ comp.unix.shell △

◅ Bourne sh: Execute Command in "if" Condition and Negate Return Value?

Homework help ▻