代码拉取完成,页面将自动刷新
openEuler-22.03 kernel-5.15.133.1 util-linux-2.37.2
-c, --output-width
选项解析中的unwrap()
导致的panic
[xubiang@BIIIANGPC easybox]$ column -c invalid
column: invalid columns argument: 'invalid'
[xubiang@BIIIANGPC easybox]$ echo $?
1
[xubiang@BIIIANGPC easybox]$ ./target/debug/easybox column -c invalid
thread 'main' panicked at src/oe/column/src/column_common.rs:206:41:
called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xubiang@BIIIANGPC easybox]$ echo $?
101
-R, --table-right
、-H, --table-hide
选项解析中的panic
[xubiang@BIIIANGPC easybox]$ column --table-right invalid --table ./tests/fixtures/column/table
column: undefined column name 'invalid'
[xubiang@BIIIANGPC easybox]$ echo $?
1
[xubiang@BIIIANGPC easybox]$ ./target/debug/easybox column --table-right invalid --table ./tests/fixtures/column/table
thread 'main' panicked at src/oe/column/src/lib_column.rs:831:13:
Column 'invalid' not found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xubiang@BIIIANGPC easybox]$ echo $?
101
-T, --table-truncate
、-W, --table-wrap
选项解析逻辑错误导致的panic
[xubiang@BIIIANGPC easybox]$ column --table-wrap 2a --table ./tests/fixtures/column/table
column: undefined column name '2a'
[xubiang@BIIIANGPC easybox]$ column --table-truncate 2a --table ./tests/fixtures/column/table
column: undefined column name '2a'
[xubiang@BIIIANGPC easybox]$ ./target/debug/easybox column --table-wrap 2a --table ./tests/fixtures/column/table
thread 'main' panicked at src/oe/column/src/lib_column.rs:665:30:
attempt to divide by zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xubiang@BIIIANGPC easybox]$ ./target/debug/easybox column --table-truncate 2a --table ./tests/fixtures/column/table
thread 'main' panicked at src/oe/column/src/lib_column.rs:583:30:
attempt to divide by zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
file
参数解析中的unwrap()
导致的panic
[xubiang@BIIIANGPC ~]$ column f
column: f: No such file or directory
[xubiang@BIIIANGPC ~]$ echo $?
1
[xubiang@BIIIANGPC ~]$ easybox column f
thread 'main' panicked at src/oe/column/src/column_common.rs:508:70:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xubiang@BIIIANGPC ~]$ echo $?
101
--tree
、--tree-id
和--tree-parent
选项使用时的unwrap()
导致的panic
[xubiang@BIIIANGPC ~]$ column --table --tree 1 ./tests/fixtures/column/table
column: options --tree-id and --tree-parent are required for tree formatting
[xubiang@BIIIANGPC ~]$ echo $?
1
[xubiang@BIIIANGPC ~]$ ./target/debug/easybox column --table --tree 1 ./tests/fixtures/column/table
thread 'main' panicked at src/oe/column/src/lib_column.rs:764:43:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xubiang@BIIIANGPC ~]$ echo $?
101
-l, --table-columns-limit
选项解析中的unwrap()
导致的panic
[xubiang@BIIIANGPC easybox]$ column --table-columns-limit invalid
column: invalid columns limit argument: 'invalid'
[xubiang@BIIIANGPC easybox]$ echo $?
1
[xubiang@BIIIANGPC easybox]$ ./target/debug/easybox column --table-columns-limit invalid
thread 'main' panicked at src/oe/column/src/column_common.rs:183:41:
called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[xubiang@BIIIANGPC easybox]$ echo $?
101
-m, --table-maxout
选项在util-linux 2.37.2中不存在且程序未进行实现;-t, --table
与-x, --fillrows
同时出现、-J, --json
与-x, --fillrows
同时出现的情况进行处理;--tree
选项存在时未对--tree-id
和--tree-parent
选项进行存在性检查;--tree
选项测试等。此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论