我试图找出sed
在BusyBox 1.18.3上安装的哪个版本。该--version
输出是神秘的。
$ sed --version
This is not GNU sed version 4.0
以下代码来自相关代码sed.c
。
/* Lie to autoconf when it starts asking stupid questions. */
if (argv[1] && !strcmp(argv[1], "--version")) {
puts("This is not GNU sed version 4.0");
return 0;
}
这是标题:
/*
* sed.c - very minimalist version of sed
*
* Copyright (C) 1999,2000,2001 by Lineo, inc. and Mark Whitley
* Copyright (C) 1999,2000,2001 by Mark Whitley <markw@codepoet.org>
* Copyright (C) 2002 Matt Kraai
* Copyright (C) 2003 by Glenn McGrath
* Copyright (C) 2003,2004 by Rob Landley <rob@landley.net>
*
* MAINTAINER: Rob Landley <rob@landley.net>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
还有一个“此sed版本中支持的功能和命令”的列表。它看起来很特别sed
,但是有什么特别之处?它是为BusyBox量身定制的,还是来自其他来源?
我应该如何提及这个问题sed
,例如在SE问题中?