On Sun, Feb 03, 2008 at 03:53:42PM +0100, Robert Millan wrote:
> On Sun, Feb 03, 2008 at 02:29:55PM +0100, Robert Millan wrote:
> > On Sun, Feb 03, 2008 at 09:05:38PM +0800, Bean wrote:
> > >
> > > if font (xxx)/some-file.pff ; then
> > > # graphic mode setting
> > > else
> > > # text mode set
On Sun, Feb 03, 2008 at 02:29:55PM +0100, Robert Millan wrote:
> On Sun, Feb 03, 2008 at 09:05:38PM +0800, Bean wrote:
> >
> > if font (xxx)/some-file.pff ; then
> > # graphic mode setting
> > else
> > # text mode setting
> > fi
> >
> > i think this behavior is consistent with sh, an error co
On Sun, Feb 03, 2008 at 09:05:38PM +0800, Bean wrote:
>
> if font (xxx)/some-file.pff ; then
> # graphic mode setting
> else
> # text mode setting
> fi
>
> i think this behavior is consistent with sh, an error code returned
> from command should not cause the script to abort.
Urg, part of up
On Sunday 03 February 2008 11:55, Robert Millan wrote:
> You mean it is intentional? I think it's a bad plan to assume user will
> check for error status of each command, specially in situations like
> font/gfxterm.
It is quite intentional. This behavior is consistent with Bash and GRUB
Legacy.
On Feb 3, 2008 6:55 PM, Robert Millan <[EMAIL PROTECTED]> wrote:
> On Sun, Feb 03, 2008 at 11:05:26AM +0800, Bean wrote:
> > > > > Try the following grub.cfg:
> > > > >
> > > > > cat (memdisk)/non-existant-file
> > > > > echo this point should never be reached
> > > > > read
> > > > >
> > > >
On Sun, Feb 03, 2008 at 11:05:26AM +0800, Bean wrote:
> > > > Try the following grub.cfg:
> > > >
> > > > cat (memdisk)/non-existant-file
> > > > echo this point should never be reached
> > > > read
> > > >
> > > > You'll see that the echo is reached, even if cat returned an error.
> > > >
>
On Feb 3, 2008 5:07 AM, Robert Millan <[EMAIL PROTECTED]> wrote:
> On Sat, Feb 02, 2008 at 09:59:57PM +0100, Marco Gerards wrote:
> > Robert Millan <[EMAIL PROTECTED]> writes:
> >
> > > Try the following grub.cfg:
> > >
> > > cat (memdisk)/non-existant-file
> > > echo this point should never be
On Sat, Feb 02, 2008 at 09:59:57PM +0100, Marco Gerards wrote:
> Robert Millan <[EMAIL PROTECTED]> writes:
>
> > Try the following grub.cfg:
> >
> > cat (memdisk)/non-existant-file
> > echo this point should never be reached
> > read
> >
> > You'll see that the echo is reached, even if cat r
Robert Millan <[EMAIL PROTECTED]> writes:
> Try the following grub.cfg:
>
> cat (memdisk)/non-existant-file
> echo this point should never be reached
> read
>
> You'll see that the echo is reached, even if cat returned an error.
>
> This becomes much worse when found in situations like:
>
>
Try the following grub.cfg:
cat (memdisk)/non-existant-file
echo this point should never be reached
read
You'll see that the echo is reached, even if cat returned an error.
This becomes much worse when found in situations like:
font (xxx)/some-file.pff
terminal gfxterm
and the font
10 matches
Mail list logo