File: uname

package info (click to toggle)
eclipse 3.5.2-6squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 297,208 kB
  • ctags: 426,326
  • sloc: java: 2,527,099; ansic: 122,607; xml: 100,868; cpp: 33,545; jsp: 3,869; sh: 2,557; perl: 1,650; makefile: 272; csh: 151; python: 69; php: 24
file content (15 lines) | stat: -rw-r--r-- 148 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
uname "$@"
RET=$?

if [ $? != 0 ] ; then
   exit $RET
fi

RESULT=`uname "$@"`

if [ "x$RESULT" = "xunknown" ] ; then
   exit 1
fi

exit 0