Subject: bin/2620: init always calls single-user shell "-sh"
To: None <gnats-bugs@NetBSD.ORG>
From: None <cgd@cs.cmu.edu>
List: netbsd-bugs
Date: 07/11/1996 15:56:27
>Number:         2620
>Category:       bin
>Synopsis:       init always calls single-user shell "-sh"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 11 16:20:02 1996
>Last-Modified:
>Originator:     Chris G. Demetriou
>Organization:
Kernel Hackers 'r' Us
>Release:        1.2_ALPHA
>Environment:
System: NetBSD bunnahabhain.pdl.cs.cmu.edu 1.2A NetBSD 1.2A (GENERIC) #37: Tue Jul 9 00:07:21 EDT 1996 cgd@bunnahabhain.pdl.cs.cmu.edu:/nfsmnt/usr8/cgd/mac/trunk-src/sys/arch/alpha/compile/GENERIC alpha


>Description:
	init always calls the single-user shell "-sh", even if (because
	a different shell was given at the "Enter pathname ..." prompt)
	the single-user shell is not actually sh.

>How-To-Repeat:
	Boot single-user.  Enter a shell other than 'sh' at the

		Enter pathname of shell or RETURN for sh:

	prompt.  At the shell prompt, run ps aux, and notice that the
	shell is always named "-sh".

	For a 'cuter' display, enter the shell as "/bin/ps".  You'll
	get output like:

		init: copying out path `/sbin/init' 11
		Enter pathname of shell or RETURN for sh: /bin/ps
		  PID TT  STAT      TIME COMMAND
		    3 B0  Rs+    0:00.09 -sh (ps)

	I noticed this problem because entering "/sbin/halt" at that
	prompt (with the patch mentioned a few PR's ago, to keep
	the system from hanging) always reboots, rather than halts.

>Fix:
	None provided.
>Audit-Trail:
>Unformatted: