Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #411756

Re: WHOA! Microsoft strikes again...

From Jasen Betts <jasen@xnet.co.nz>
Newsgroups sci.electronics.design
Subject Re: WHOA! Microsoft strikes again...
Date 2016-05-13 12:06 +0000
Organization "JJ's own news server"
Message-ID <nh4fvm$i35$1@gonzo.alcatraz> (permalink)
References (8 earlier) <VU3Uy.9474$Sk5.8536@fx45.am4> <nfvl63$70o$2@gonzo.alcatraz> <6d4f8841-e0a2-4ff0-88e0-2c51f9b38329@googlegroups.com> <ngv34m$moc$1@gonzo.alcatraz> <7qKdncDNyYHRzK7KnZ2dnUU7-XvNnZ2d@supernews.com>

Show all headers | View raw


On 2016-05-11, Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
> On 05/11/2016 06:56 AM, Jasen Betts wrote:
>> On 2016-04-29, Lasse Langwadt Christensen <langwadt@fonz.dk> wrote:
>>> Den fredag den 29. april 2016 kl. 15.01.44 UTC+2 skrev Jasen Betts:
>>>> On 2016-04-27, Tom Gardner <spamjunk@blueyonder.co.uk> wrote:
>>>>> On 27/04/16 14:04, Phil Hobbs wrote:
>>>>>>> Thanks Jeff, You know I miss all the command line stuff from the old DOS days.
>>>>>>> (It gave me this illusion, that I knew what I was doing with the 'puter.)
>>>>>>
>>>>>> No need to miss it, it's all still there. On my remaining Windows boxes I install Cygwin, which gives me a Unix-style (bash) command line.
>>>>>
>>>>> You may not need to do that much longer: MS is bringing bash and much
>>>>> more to windows
>>>>>    Bash on Windows is Microsoft's solution to the problem and it aims to
>>>>>    bring the entire Ubuntu userland, minus the Linux kernel to Windows.
>>>>>    As a result, developers have access to the complete set of Ubuntu
>>>>>    CLI tools and utilities. In layman's terms, it's akin to running
>>>>>    Linux in Windows, natively.
>>>>>
>>>>> https://www.linux.com/news/bash-windows-what-does-it-mean
>>>>> and widely reported elsewhere, e.g.
>>>>> http://techcrunch.com/2016/03/30/be-very-afraid-hell-has-frozen-over-bash-is-coming-to-windows-10/
>>>>>
>>>>> It will be interesting to see how it all pans out.
>>>>
>>>> Windows doesn't have "argv[]"... fork() neither SFAIK this could get messy.
>>>>
>>>
>>> argv[] as in command-line arguments? that is standard C on all platforms
>>
>> yeah, windows doesn't have that. instead every program gets a single
>> string and has to figure out where each argument starts and ends and
>> what it contains... different programs often do it differently.
>
> What Windows compiler are you using? 

makes no difference. 

> I use the normal argc/argv mechanism in programs that run on both Linux (gcc)
> and Windows (Visual Studio), and have never had to change that part of the 
> code for Windows.

You get half-arsed argv[] supprt on windows, it's good enough 
for more than 90% of use cases. 

Try writing a work-alile for or printf(1), watch, tr, grep or sed where 
you can expect the user to want to use arbitrary symbols (and control
characters) in the arguments. 

>>> cygwin implements fork on windows and native windows has a createProcess
>>> that does kinda the same thing so I'm sure MS could figure it out
>>
>> FAICT createproccess is not the same as fork, doesn't have the same
>> capablities...
>>
>>
>> I did somge googleing, it seems they're using a linux emulation layer
>> (like wine but pointing the opposite direction) so they can fake argv[]
>> in a self-consistent way without too much effort, fork will be trickier.
>
> Cygwin has had fork() for years.

they do a merry dance to get an almost fully working fork.

-- 
  \_(ツ)_

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-11 10:56 +0000
  Re: WHOA! Microsoft strikes again... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-11 11:35 -0400
    Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-13 12:06 +0000
      Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-13 12:40 +0000
      Re: WHOA! Microsoft strikes again... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-13 11:00 -0400
        Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-13 20:56 +0000
          Re: WHOA! Microsoft strikes again... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-13 18:19 -0400
            Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-14 06:21 +0000
  Re: WHOA! Microsoft strikes again... Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-05-11 09:54 -0700
    Re: WHOA! Microsoft strikes again... M Philbrook <jamie_ka1lpa@charter.net> - 2016-05-11 14:05 -0400
      Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-13 12:38 +0000
    Re: WHOA! Microsoft strikes again... Jasen Betts <jasen@xnet.co.nz> - 2016-05-13 12:35 +0000

csiph-web