Fri Oct 18, 2019 11:02 am
rpdom wrote: ↑Fri Oct 18, 2019 9:24 am
Is cwd a shell built-in variable? I know PWD is, but don't think cwd is. Perhaps cwd has been set elsewhere?
I will admit to having to check as my first thoughts were that $cwd existed though I was suspicious about $cwd vs $CWD,
$PWD does exist (at least on login shells running bash, but neither $cwd or $CWD exist by default, (AFAICT)
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson