[Eug-lug] shell evilness

Bob Miller kbob at jogger-egg.com
Thu Jul 6 10:45:02 PDT 2006


Fred James wrote:

> Perhaps someone could verify that the -v options is a valid option of 
> 'data' on some *nix system other than FreeBSD?  I have not been able to 
> find it on any of the *nix systems available to me (SGI and Unisys, as 
> well as Linux).  Granted, that may not mean too much.

Also not in (a very old release of) OpenBSD.

Therefore I submit this perl script equivalent to Larry's original
post. (-:

	$ perl -e 'system"date -v;"x7'
	date: invalid option -- v
	Try `date --help' for more information.
	date: invalid option -- v
	Try `date --help' for more information.
	date: invalid option -- v
	Try `date --help' for more information.
	date: invalid option -- v
	Try `date --help' for more information.
	date: invalid option -- v
	Try `date --help' for more information.
	date: invalid option -- v
	Try `date --help' for more information.
	date: invalid option -- v
	Try `date --help' for more information.


-- 
Bob Miller                              K<bob>
                                        kbob at jogger-egg.com


More information about the EUGLUG mailing list