/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1992-2012 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* mime capability interface
*/
static const char usage[] =
"[-?\n@(#)$Id: mime (AT&T Research) 1999-08-11 $\n]"
"[+NAME?mime - list mime capabilities]"
" no operands all mime entries are listed. With just a \atype\a operand"
" the mime entry for \atype\a is listed. Otherwise the expanded"
" \bsh\b(1) command for the \aview\a operation on the object \aname\a"
" with mime type \atype\a and optional \aattribute\a(s) is written to"
" the standard output. \aview\a may be \b-\b for the most common"
" action.]"
"[s:silent|quiet?Exit 0 if match found, 1 otherwise, with no diagnostics.]"
"\n\n"
"type\n"
"view name type [ attribute ... ]\n"
"\n"
"[+SEE ALSO?\bfile\b(1), \bmailx\b(1), \bmagic\b(3), \bmime\b(3)]"
;
#include <cmd.h>
#include <mime.h>
int
{
char* s;
int silent;
silent = 0;
for (;;)
{
{
case 0:
break;
case 's':
silent = 1;
continue;
case ':':
continue;
case '?':
continue;
}
break;
}
{
}
if (argc <= 1)
else
{
{
if (silent)
exit(1);
}
else
}
return 0;
}