The current MKS Toolkit shells will recognize /dev/null , /dev/nul , or null as a null device. The KornShell prior to MKS Toolkit 6.1 did not recognize /dev/null .
If portability issues arise with Toolkit versions previous to 6.1, the following script offers a suggestion on how to address them.
SYS=$(uname)
case “$SYS” in
DOS|Windows_95|Windows_98|Windows_NT)
DEVNULL=nul;;
*)
DEVNULL=/dev/null;;
esac
echo "This doesn't show up on the screen" > $DEVNULL
|