Re: Can't figure out recursion problem in bash/freebsd - reply/solution to all helpers

2010-01-08 Thread Bernard T. Higonnet
Hello, There were two approaches offered to my problem 1) changing my script: it runs if the cd .. is moved from the end of the script into the then clause of the if statement === #! /bin/sh echo Starting in `pwd` for hoo in *; do echo Found item $hoo if [ -d $hoo ]; then

Re: Can't figure out recursion problem in bash/freebsd - reply/solution to all helpers

2010-01-08 Thread RW
On Fri, 08 Jan 2010 11:23:33 +0100 Bernard T. Higonnet b...@higonnet.net wrote: #! /bin/sh ... I shall be bold: this strikes me as a bug in bash. Am I off my nut here? If it is a bug, it's a bug in /bin/sh, not bash. ___