[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: alias 'svn up -n' to 'svn st -u' when '--nonrecursive' removed? :-)

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-07-13 12:58:17 CEST

> But if -n really is a widely used convention, then we can use -N for
> --non-recursive and -n for this.

I ran this on a Debian i386:

dione$ cd /usr/bin
dione$ for CMD in ? ?? ??? ???? ?????; do OUTPUT="`man $CMD 2> /dev/null | col -b | egrep -- '^[ \t]*-n[ \t,].*'`" && echo -e "$CMD:\t$OUTPUT"; done

The results - filtered for the ones where '-n' meant 'pretend/simulate'
- were as follows:

gpg: -n, --dry-run
lex: -n is another do-nothing, deprecated option included
flex: -n is another do-nothing, deprecated option included
make: -n Print the commands that would be executed, but do not
tcsh: -n The shell parses commands but does not execute them.
eject: -n With this option the selected device is displayed but
rsync: -n, --dry-run show what would have been transferred
skill: -n no action This only displays the process ID.
snice: -n no action This only displays the process ID.
xmake: -n dry run - do not execute commands lists

Sure, there are many more non-pretend '-n's than there are pretend ones,
but '-n' seems to mean 'pretend' more than any other single meaning.
Whether that makes it a convention or not ...

Alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 13 12:58:48 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.