Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!iczer-1!emm From: emm@iczer-1.UUCP (Edward M. Markowski) Newsgroups: comp.lang.c Subject: Re: UNIX command line arguments Message-ID: <319@iczer-1.UUCP> Date: 8 Jun 90 23:22:18 GMT References: <352@ankh.ftl.fl.us> Reply-To: emm@iczer-1.UUCP (Edward M. Markowski) Organization: The Kurowulf Empire Lines: 22 In article <352@ankh.ftl.fl.us> chin@ankh.ftl.fl.us (Albert Chin) writes: > >the case of "mv file.* myfile.*". Would **argv then contain "mv file.1 >myfile.1 file.2 myfile.2 file.3 myfile.3". If so, then I understand, but >if now, then how else does it work. > You have it right except for one point. When the shell expands the * or [] or whatever else you put on the line it alphabitizes(sp?) them. You have to rember that some commands need the parameters in a specific order. mv will work with many parameters as long as the last one it the name of a directory. -- Edward M. Markowski -- iczer-1 Administrator ...the garage is flooded from the sprinkler. It also left a man's decapitated body, VOICE : (201) 478-6052 lying on the floor next to his own severed head. UUCP : ..!uunet!iczer-1!emm A head which at this time has no name.