🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: mod.computers.apollo
1 messages
1 total messages Started by 'da Kingfish Wed, 25 Jun 1986 16:49
sanity check ...
#188
Author: 'da Kingfish
Date: Wed, 25 Jun 1986 16:49
25 lines
1234 bytes
is this just me, or what??

*****
	% cat /tmp/test.sh
	#!/bin/sh
	if [ '!' -f $1 ]
	then	echo "Hmmmmm. can't open $1"
	else
		echo "Great.  can open $1"
	fi
	exit 0
	% /tmp/test.sh /etc/passwd
	Great.  can open /etc/passwd
	% /tmp/test.sh /dev/null
	Hmmmmm. can't open /dev/null
	% cp /dev/null xxx
	% ls -l xxx
	-rwx------  1 paul            0 Jun 25 12:11 xxx
	% ls -lL /dev/null
	crwxrwxrwx  1 <none>     0,   0 Feb 26 20:14 /dev/null
*****

this kind of check happens in /usr/bin/install, and i "install -c
/dev/null blah" to make sure files are empty.  except i can't.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads