[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Square bracket test expressions in GRUB2's scripting language undocu
From: |
Jordan Uggla |
Subject: |
Re: Square bracket test expressions in GRUB2's scripting language undocumented. |
Date: |
Sat, 22 Jun 2013 14:23:43 -0700 |
On Wed, Jun 19, 2013 at 4:34 AM, João Ricardo Sares Teles de Matos
<address@hidden> wrote:
> Can the documentation for the "test" command from GNU Coreutils be used
> safely for GRUB 2's "[" command?
Yes. For all features common to bash* and grub-script, those features
should have the same syntax unless there is a pressing reason for them
not to (which is very rare and so if you notice any discrepancies
please file a bug report).
* Technically you asked about /usr/bin/[ from GNU Coreutils, which is
not bash, but '[' and 'test' are also builtin functions in bash, and
you'll get very similar results from "help test".
--
Jordan Uggla (Jordan_U on irc.freenode.net)