Marco Gerards <[EMAIL PROTECTED]> writes: > Iterating over files: > for x in (hd0,3)/foo/* ; do commands ; done
I must say I would prefer this over the other ("foreach") suggestion, since I'm more used to it. Anyhow, is your plan to make expansion available through out the whole shell, or only for "for"? It would be nice to be able to do; grub> ls (*,*)/boot/vmlinuz* > One special purpose variable $ERROR will be added. It will contain > the error strings when $? is set to non-zero. In that case you can do > error handling in scripts. I'm afraid there might be situations where the user do not realize that $ERROR has been overwritten. Bogus example; if cat (hd0,1)/foo/bar; then ls (hd0,1)/foo echo "*** 'bar' is missing: $ERROR" fi The execution of 'ls' will overwrite $ERROR. ~j
pgpqCUCKkZeL9.pgp
Description: PGP signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel