spec test index / oilshell.org

status | dash | bash | mksh | zsh | osh | |

pass | 0 | 0 | 5 | 2 | 5 | |

ok | 5 | 5 | 0 | 0 | 0 | |

BUG | 0 | 0 | 0 | 3 | 0 | |

total | 5 | 5 | 5 | 5 | 5 | |

case | dash | bash | mksh | zsh | osh | description |

0 | ok | ok | pass | pass | pass | Unrecoverable: divide by zero in redirect word |

details | details | |||||

1 | ok | ok | pass | BUG | pass | Unrecoverable: divide by zero in conditional word |

details | details | details | ||||

2 | ok | ok | pass | BUG | pass | Unrecoverable: divide by zero in case |

details | details | details | ||||

3 | ok | ok | pass | pass | pass | Unrecoverable: ${undef?message} |

details | details | |||||

4 | ok | ok | pass | BUG | pass | ${undef} with nounset |

details | details | details |

12 passed, 10 OK, 0 not implemented, 3 BUG, 0 failed, 0 timeouts, 0 cases skipped

dash | 0 Unrecoverable: divide by zero in redirect wordstdout: outside=2 stderr: dash: 2: arithmetic expression: division by zero: " 42 / 0 " |

bash | 0 Unrecoverable: divide by zero in redirect wordstdout: inside=1 outside=0 stderr: bash: line 1: 42 / 0 : division by 0 (error token is "0 ") |

dash | 1 Unrecoverable: divide by zero in conditional wordstdout: outside=2 --- outside=2 stderr: dash: 2: arithmetic expression: division by zero: " 42 / 0 " dash: 2: arithmetic expression: division by zero: " 42 / 0 " |

bash | 1 Unrecoverable: divide by zero in conditional wordstdout: inside=1 outside=0 --- inside=1 outside=0 stderr: bash: line 1: 42 / 0 : division by 0 (error token is "0 ") bash: line 1: 42 / 0 : division by 0 (error token is "0 ") |

zsh | 1 Unrecoverable: divide by zero in conditional wordstdout: outside=1 --- outside=0 stderr: zsh:2: division by zero zsh:2: division by zero |

dash | 2 Unrecoverable: divide by zero in casestdout: outside=2 --- outside=2 stderr: dash: 2: arithmetic expression: division by zero: " 42 / 0 " dash: 2: arithmetic expression: division by zero: " 42 / 0 " |

bash | 2 Unrecoverable: divide by zero in casestdout: inside=1 outside=0 --- inside=1 outside=0 stderr: bash: line 1: 42 / 0 : division by 0 (error token is "0 ") bash: line 1: 42 / 0 : division by 0 (error token is "0 ") |

zsh | 2 Unrecoverable: divide by zero in casestdout: outside=0 --- outside=0 stderr: zsh:2: division by zero zsh:2: division by zero |

dash | 3 Unrecoverable: ${undef?message}stdout: outside=2 outside=2 stderr: dash: 2: undef: message dash: 2: undef: message |

bash | 3 Unrecoverable: ${undef?message}stdout: outside=127 outside=127 stderr: bash: line 1: undef: message bash: line 1: undef: message |

dash | 4 ${undef} with nounsetstdout: outside=2 stderr: dash: 3: undef: parameter not set |

bash | 4 ${undef} with nounsetstdout: outside=127 stderr: bash: line 2: undef: unbound variable |

zsh | 4 ${undef} with nounsetstdout: outside=0 stderr: zsh:3: undef: parameter not set |