Subject: bin/18442: 'su command' without -c results in unexpected behavior
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 09/28/2002 13:33:24
>Number:         18442
>Category:       bin
>Synopsis:       'su command' without -c results in unexpected behavior
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 27 20:35:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 1.6H
>Organization:
>Environment:
System: NetBSD mofo 1.6H NetBSD 1.6H (MOFO.PROF) #0: Thu Sep 19 00:54:25 EST 2002 grant@mofo:/raid0/netbsd/current/src/sys/arch/i386/compile/MOFO.PROF i386
Architecture: i386
Machine: i386
>Description:
attempting to run 'su' and specify a command without using -c results in
unexpected behavior.

mofo# su user /bin/ls
\215\203^H~\377\377Pj^Bjj^D\350^^: Event not found.
mofo# su user /usr/bin/uptime
^R^G^H^C: Event not found.

>How-To-Repeat:
see above.

>Fix:
unknown. It seems to be a feature that the shell tries to interpret the
argument as a script...

>Release-Note:
>Audit-Trail:
>Unformatted: