Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond From: diamond@csl.sony.JUNET (Norman Diamond) Newsgroups: comp.lang.misc Subject: Re: Language Tenets Message-ID: <10595@riks.csl.sony.JUNET> Date: 24 Jul 89 04:51:14 GMT References: <57125@linus.UUCP> <1989Jun24.230056.27774@utzoo.uucp> <5096@ficc.uu.net> <5098@ficc.uu.net> Reply-To: diamond@riks. (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 16 In article <5098@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >I like it, thought I think the following >syntax is a bit more consistant: > > execv("/bin/sh", (char *){"sh", "-c", command}); Maybe execv("/bin/sh", (char *) &{"sh", "-c", command}); might be more consistEnt? -- -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.jp@relay.cs.net) The above opinions are inherited by your machine's init process (pid 1), after being disowned and orphaned. However, if you see this at Waterloo or Anterior, then their administrators must have approved of these opinions.