On 12/19/2019 11:15 AM, Ed Maste wrote: > On Thu, 19 Dec 2019 at 08:56, Derrick Stolee <stolee@xxxxxxxxx> wrote: >> >> On 12/18/2019 9:45 PM, Eric Wong wrote: >>> This goes on top of your patch: >> ... >>> + ( cd "$1" && for i in *; do echo "$i"; done ) >> >> Could we drop the "cd" and "echo" processes with this line instead? >> >> for i in "$1"/*; do printf "$i\n"; done > > That would output repo/a, but we could do something like: > for i in "$1"/*; do echo "${i#$1/}"; done > > echo's a builtin on any /bin/sh I'm aware of - do you have a /bin/sh > with builtin printf but not echo? I guess I am misremembering the benefits of printf over echo. Carry on with your approach. Thanks, -Stolee