What means: "[: : bad number" during boot?

Status
Not open for further replies.

DaPlumber

Patron
Joined
May 21, 2014
Messages
246
See pretty picture:
FreeNAS_boot_error.JPG

That's a little disturbing right there. It's still there in 11.1-U5.

Am I the only one seeing this?
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
You should file a bug report so the development team can see it.

Sent from my SAMSUNG-SGH-I537 using Tapatalk
 

anmnz

Patron
Joined
Feb 17, 2018
Messages
286
Am I the only one seeing this?

No, I think it's been there for a while, have seen comments about it from months ago. @Chris Moore is right though, bug reports are good.

It's a shell script error, somewhere in the FreeNAS startup scripts, where a numeric test is receiving an empty value, most likely a empty or uninitialized variable.

You can reproduce it like this in a C shell (csh, tcsh):
Code:
% set x=
% [ "$x" -eq 1 ]
[: : bad number
%

or like this in a Bourne shell (sh, bash, ...):
Code:
$ x=
$ [ "$x" -eq 1 ]
[: : bad number
$

To be honest it is almost certainly harmless... though IMO system startup scripts need to be utterly clean and even cosmetic errors aren't OK.
 
Status
Not open for further replies.
Top