Date: Tue, 20 Nov 2012 18:42:37 +0000 (UTC) From: jb <jb.1234abcd@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: portsnap Message-ID: <loom.20121120T193059-797@post.gmane.org> References: <loom.20121120T173108-456@post.gmane.org> <201211201826.qAKIQq8C097714@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Robert Bonomi <bonomi <at> mail.r-bonomi.com> writes: > ... > > > the authors of the portsnap docs (and the _numerous_ other applications > > > that describe the use of certain keywords used as input to that > > > appication ARE correct -- despite your boneheaded denial of that fact. Yes, it is a keyword, a keyword parameter that tells CLI command what to do (yes, a keyword that may be taken verbatim or translated into an internal command parameter(s), a keyword that represents an action). But, it is not a command, or parameter of type command. > > With regard to definition of "a command" as we practice and argue about > > here: > > > > In general (see bash(1), SHELL GRAMMAR, Simple Commands), a command is an > > executable preceded by optional vars and followed by optional parameters. > You lie. A "command" does not have to have the attributes of a command-line > invocation. Well, a second nature ... But, it is an honor :-) To drive the point: let's assume that it is a valid syntax to pass a parameter like this: "ls -al" or much better, command="<command>", like this: command="ls -al" then it would be clear that a command (parameter) is passed to CLI command. This kind of command parameter passing fulfilles the definition of a command as referenced. If you are familiar with C function system(), you will have easier time to understand: http://www.cplusplus.com/reference/clibrary/cstdlib/system/ The prototype is: int system ( const char * command ); The command "ls -al" (yes, it is a command as referenced) is a parameter to system() function: system("ls -al"); It just says, execute that command "ls -al" in the existing execution environment. The reason I go so by the book about it is that "words have meaning" and definitions :-) jb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20121120T193059-797>