Subject: install/7805: !ls in ftp on install floppy produces... weird results.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cgd@netbsd.org>
List: netbsd-bugs
Date: 06/18/1999 01:20:54
>Number:         7805
>Category:       install
>Synopsis:       !ls in ftp on install floppy produces... weird results.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 18 01:20:01 1999
>Last-Modified:
>Originator:     Chris Demetriou
>Organization:
>Release:        1.4
>Environment:
NetBSD/i386 1.4 install floppy, but from source inspection
it looks like this bug affects most if not all ports which use
sysinst.
>Description:
[filed as install because from source inspection this problem would
seem to affect most if not all ports which use sysinst.  priority and
severity as high as they are because this seems to affect so many ports]

if you run the ftp on the 1.4 i386 install floppy, and e.g. run "!ls"
to see what's in your current directory, you get weird output, e.g.
in the process of trying to run ls, the "!ls" command will actually
start sysinst!
>How-To-Repeat:
boot an i386 1.4 install floppy.  quit out of sysinst.  run the 'ftp'
command (no destination necessary).

!ls

Note ... interesting output.
>Fix:
Not sure.  This is a side effect of the fact that /.profile is used to
start sysinst.

It looks like some effort was made to avoid this problem via
the "DONEPROFILE" check and set which keeps it from trying to do
various things like run sysinst.  It could be that setting DONEPROFILE
in the environment (via 'export DONEPROFILE') is desired, but
i'm not familiar enough with the current install scripts to say for
sure.
>Audit-Trail:
>Unformatted: