Ash wildcard usability bug

Kang-Che Sung explorer09 at gmail.com
Wed Oct 26 02:44:06 UTC 2016


On Wed, Oct 26, 2016 at 1:24 AM, Lauri Kasanen <curaga at operamail.com> wrote:
>
> Well, I did try to use tab completion: cat < *zip[TAB]
>
> Of course it doesn't work. In my case, I had many files sharing a
> prefix, but only one ending in *zip, so typing that was several
> times faster than letter- tab, oh more letters, tab, oh, more
> letters, tab, more....
>

I wonder why you can't implement an easy workaround using ls or something.

    filename="`ls *zip | head -n 1`"
    nc 10.0.0.1 12345 < "$filename"
    do_something_else < "$filename"

Yeah. Just avoid the glob on the redirection and instead get the
filename before that. Any difficulty?


More information about the busybox mailing list