Is there any reason (other than I’m an idiot) that I can’t invoke built-in commands (e.g., typeset) from within a shell script? It’s a problem that I’ve never encountered before, running the same scripts under UWIN’s ksh, or, before that, on a real-deal Unix account (also ksh). I suspect it has something to do with my profile (which is whatever Cygwin’s default is – I just installed it), but can’t tell.
Also, for arithmetic operations, the syntax shown in the O’Reilly book, Learning the bash Shell, doesn’t seem to work (e.g., let x=1+3 or $((1+3)), and I have to go back to the old expr construct. Any ideas?
Cygwin tells me it’s bash 2.05b, and it’s running on top of Windows 2000, even though I don’t think that matters.