2 ms·
I have a Korn shell script that I use to run SQL against a few dozen databases. I recently rewrote this script, so it would run on Windows, via Busybox ash. It
by chasil 5y ago
I have a Korn shell script that I use to run SQL against a few dozen databases.
I recently rewrote this script, so it would run on Windows, via Busybox ash. It needed quite a few changes. I've become somewhat practiced on the removal of bashisms.
Oddly enough I had to put a few back. Busybox on Windows doesn't implement stty that I needed to read a password, but it did have read -s, so I used that instead. I threw several snippets of ash-emulated bash back in, that would never ever run on dash.
When you ask "but why?" this is precisely why - I need this functionality in a specific place, where you cannot go.