#!/bin/sh
PS4="\#>"
set -x
ls -l fileinfo.c
# test normal usage
./fileinfo fileinfo.c
# test stdin - terminal
./fileinfo
# test stdin - redirection
./fileinfo < fileinfo.c
# test stdin - pipe
cat fileinfo.c | ./fileinfo
# test symbolic links
ln -s fileinfo.c mylink
./fileinfo mylink
# test device
./fileinfo /dev/hda2
# test directory
./fileinfo /tmp
