Hi Roland, On Mon, Sep 02, 2019 at 09:40:26AM +0000, Mainz, Roland wrote: > > Hi! > > ---- > > Quick&dirty bug report: > > - Version: barebox 2018.05.0-20190221-1-EAG_3.00-gf70df96 #1 Mon Sep 2 09:03:05 CEST 2019 > - Hardware: Eckelmann/EAG Quantron > > barebox:/ ls -l /dev/nand0.var.ubi.blablablub > ls: /dev/nand0.var.ubi.blablablub: No such file or directory > barebox:/ ls -l /dev/nand0.var.ubi.blablablub > ls: /dev/nand0.var.ubi.blablablub: No such file or directory > barebox:/ if [ -c /dev/nand0.var.ubi.blablablub ] ; then echo wrong ; else echo "right" ; fi > wrong > barebox:/ if [ -f /dev/nand0.var.ubi.blablablub ] ; then echo wrong ; else echo "right" ; fi > right barebox doesn't implement -c for test. You'll have to use -e or -f to test for existence. Arguably we should throw an error for this unsupported option rather than doing something undefined. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox