pdksh

Does pdksh (public domain korn shell) support associative arrays?

I recently ran up against a wall doing some bash shell programming where an associative array would have solved my problems. I googled about features of the Korn shell and learned that it supports associative arrays, so I installed Cygwin's pdksh (public domain korn shell). However, when trying to create an associative array in the pre...

strange behavior when using recursion in ksh93

I'm facing some problems in ksh93, when going through directories recursively. create some files and directories. base=/tmp/nonsens for i in {1..3} do mkdir -p ${base}/dir${i} for j in {1..2} do mkdir ${base}/dir${i}/dir${j} touch ${base}/dir${i}/dir${j}/file${j} touch ${base}/dir${i}/file${j} d...

Is there an explanation of the difference between export and typeset in combination with nested function calls in a korn shell program?

I have encountered an issue with ksh programs running differently on ksh88 & ksh93 wherein functions which call functions handle differently, variables declared with typeset and export. Here is an example program that highlights the difference: #!/bin/ksh # example.ksh: highlights differences between typeset and export on ksh93 functio...

cygwin : pdksh(5.2.14-3) doesn't support backslash path (\)

as an replacement for ksh under cygwin, pdksh might be the only choice. but look like there have a bug for cygwin : pdksh(5.2.14-3) to support backslash path (\). it will swallow the \ : $ cd .\access pdksh: cd: /cygdrive/e/.access - No such file or directory After search on the internet, the same problem solved for other platform. b...