pgvm
pgvm copied to clipboard
create a lib to handle generic things
Today pgvm is all in bash, but talking with @fabriziomello, @lhcezar and @fike, we think that this could be split into more layers. The actual internal file structure is stable and this could be a good signal to create a plumbing lib.
How think implementation? I think two ways:
1 - Adapt builtin commands and options to Bourne Shell (sh). Probably will have the codeline is much more or more pipes. (I think was in the past but I have that test again)
2 - Create new function that make the translation between shell implementations or similar strategy. Which are supported?
-
bash
-
ksh
-
sh
-
zsh
Now, I prefer first option but I think more discussion. :)