[4778] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 6.4R: /usr/ucb/strings

daemon@ATHENA.MIT.EDU (John T Kohl)
Tue Apr 17 10:51:25 1990

Date: Tue, 17 Apr 90 10:51:15 -0400
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System name:		lycus
Type and version:	CVAXSTAR 6.4R
Display type:		SM

What were you trying to do?
	Check the exit status of /usr/ucb/strings

What's wrong:
	It always exits with a garbage exit status, rather than a
success/error code:
[{1}lycus:~]
% /usr/ucb/strings /dev/null
Exit 96              /usr/ucb/strings /dev/null
[{1}lycus:~]
% /usr/ucb/strings /usr/ucb/strings
@(#) Copyright (c) 1980 Regents of the University of California.
 All rights reserved.
@(#)strings.c
5.1 (Berkeley) 5/31/85
Usage: strings [ -a ] [ -o ] [ -# ] [ file ... ]
%7D
Standard input
@(#)freopen.c
5.2 (Berkeley) 3/9/86
         (((((
AAAAAA
BBBBBB
Unknown error
@(#)printf.c
5.2 (Berkeley) 3/9/86
@(#)fread.c
5.2 (Berkeley) 3/9/86
@(#)fseek.c
5.3 (Berkeley) 3/9/86
@(#)filbuf.c
5.3 (Berkeley) 3/9/86
@(#)ftell.c
5.2 (Berkeley) 3/9/86
@(#)fprintf.c
5.2 (Berkeley) 3/9/86
@(#)doprnt.c
5.4 (Berkeley) 3/9/86
@(#)flsbuf.c
5.2 (Berkeley) 3/9/86
@(#)findiop.c
5.6 (Berkeley) 3/9/86
@(#)exit.c
5.2 (Berkeley) 3/9/86
Exit 96              /usr/ucb/strings /usr/ucb/strings
[{1}lycus:~]
%


What should have happened:
	It should exit 0 when it finds strings, exit 1 when it doesn't.

Please describe any relevant documentation references:
	strings(1)


home help back first fref pref prev next nref lref last post