On Nov 12, 2016, at 4:52 AM, arnoldemu <mem...@arnoldemu.freeserve.co.uk> wrote:
> 
> That is useful. What would the windows equivalent command-line?

There really isn’t an equivalent because Windows has no equivalents to the key 
mechanisms used in Andy’s two commands:

1. Command substitution:

   https://en.wikipedia.org/wiki/Command_substitution

The closest you could come would be to hand-roll some batch file or PowerShell 
code to extract the output of one Fossil command and feed it as arguments to 
another.  You’d probably end up with 10-40 lines of batch/PowerShell code to 
replicate 3 characters — $() — in a Unix shell.

2. xargs.  Again, no direct equivalent, requiring a bunch of ugly batch/PS code 
to replicate a 5-character command name.

The solution to both problems is to install WSL or Cygwin:

   http://cygwin.com
   https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

Microsoft has given us WSL for a reason: while increasingly powerful, 
Microsoft’s prior offerings — cmd.exe, PowerShell, ISE — still do not give you 
everything you get from a proper Unix shell.

As for WSL vs Cygwin, that’s a topic for a different mailing list.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to