grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Test for files with ls


From: Lampersperger Andreas
Subject: [PATCH] Test for files with ls
Date: Mon, 7 Jul 2008 09:46:58 +0200

Hi,

I have there a small patch to commands/ls.c, whichs makes the
ls-command return an error for non existing fils (as the bash ls
command).

With this patch, one can have in the grub.cfg files statements like:

if ls /boot/grub/grub.cfg.gfx ; then
    source /boot/grub/grub.cfg.gfx
fi

I would be glad if you accept the patch or give me comments to improve
the patch.

Andreas

Attachment: lsreturnserr
Description: lsreturnserr

-------------------------------------------------------------------------------------------------------
Registergericht: Traunstein / Registry Court: HRB 275 – Sitz / Head Office: 
Traunreut
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard
Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / 
Chairman),
Michael Grimm, Rainer Hagl, Matthias Fauser

E-Mail Haftungsausschluss / E-Mail Disclaimer: 
http://www.heidenhain.de/disclaimer


reply via email to

[Prev in Thread] Current Thread [Next in Thread]