Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2002 18:57:08 +0200
From:      Siegbert Baude <siegbert.baude@gmx.de>
To:        freebsd-questions@freebsd.org
Subject:   leading dash in login shell name?
Message-ID:  <200208281857.08785.siegbert.baude@gmx.de>

index | next in thread | raw e-mail

Hi,

I just noticed that in some upgrade of my 4-STABLE system within the last 
weeks there must have been a small change in the call of the shell you get 
after a login on any virtual console.

root# echo $0
-tcsh
root#

or with toor:

-bash-2.05b# echo $0
-bash
-bash-2.05b# exec bash
bash-2.05b#

I'm quite sure, that there was no leading dash in earlier days for the login 
shell. What happened there? Not that this is a big issue, but some script 
might use the value of $0. At least it breaks POLA.

Ciao
Siegbert

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208281857.08785.siegbert.baude>