Great news on cross-platform PSCore possibility!

Mark S. wrote:

> I've been experimenting with Powershell Core on linux. It took less than 
> 10 minutes to install, and takes about 150megs of space. So
> the barrier to usage is pretty low. It will be even lower if PS gets into 
> the major distributions. For those who aren't familiar with
> Linux distributions, in Linux most distributions come with a package 
> manager. With a package manager you don't have to hunt down
> software at individual web sites. Instead you just open the manager, tell 
> it that you want Open Office, Firefox, and Gnumeric, and in 
> a few minutes it's all installed.
>
 The good news is that Polly's menus looked the same right out of the gate. 
> Somehow PS handled the directory structures well enough

that nothing special had to be done to see the usage file or load 
> settings.ini. Obviously, the part of TT's code that invokes notepad would
> need to be tweaked. 
>
> So far the only thing PS has completely rejected is the BufferSize setting.
>  
>
> @TT -- how important is this setting? The screens looked OK. I'm thinking 
> it would be possible to wrap the code with a check for platform 
> so it doesn't throw an error.
>

The *BufferSize* is under the # CONSOLE section. That entire console 
section may not be required on Linux. 

The BufferSize sets the "internal" size of Windows console (not the actual 
size of displayed window which I set in the batch file launchers). 
I set it it wide and high so (1) long lines don't wrap; (2) you can scroll 
up what has happened without the buffer running out.
 

> There were some conflicts between linux alias names and PS names. They can 
> be resolved by using full PS names.
>

OK. Changing all aliases to full PS names might be a good idea. 
Makes code longer but perhaps more readable cross-platform

There may or may not be some issues relating to the path separator, but 
> further testing is required.
>

This is an interesting issue.* \ v. /*. 
I noticed on Windows a lot of time you can use them interchangeably.
Hopefully PSCore supports that so we don't need to change too much.
 

> At the moment it looks like it might be possible to make Polly forward 
> compatible with Powershell Core 6, 
>

Sounds like it could be done! 

Mostly, in future, I'll comment on tech on GHub.

TT

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c16fc147-b19f-4628-bcf3-4ab2631935b8%40googlegroups.com.

Reply via email to