Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/which

Buildroot jacmet at uclibc.org 3 participants 4 messages Jul 22, 2008 – Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-07-22 06:59:35 -0700 (Tue, 22 Jul 2008) New Revision: 22913

Log:
which: needs readline

Patch by Wade Berrier.

Modified:
trunk/buildroot/package/which/Config.in

Changeset:
Modified: trunk/buildroot/package/which/Config.in
===================================================================

buildroot/package/which/Config.in +1 -0
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_WHICH
 	bool "which"
+	select BR2_READLINE
 	help
 	  The standard 'which' utility.
 
#1 lore raw
Quoted 6 lines · jacmet at uclibc.org

Author: jacmet
Date: 2008-07-22 06:59:35 -0700 (Tue, 22 Jul 2008) New Revision: 22913

Log:
which: needs readline

What does this package do that busybox's which doesn't?

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#2 lore raw

Hi,

Quoted 9 lines · Hamish Moffatt
Quoted 6 lines · jacmet at uclibc.org

Author: jacmet
Date: 2008-07-22 06:59:35 -0700 (Tue, 22 Jul 2008) New Revision: 22913

Log:
which: needs readline

What does this package do that busybox's which doesn't?

berrier:/home/wberrier # which --help
Usage: which [options] [--] programname [...]
Options: --version, -[vV] Print version and exit successfully.
--help, Print this help and exit successfully.
--skip-dot Skip directories in PATH that start with a
dot.
--skip-tilde Skip directories in PATH that start with a
tilde.
--show-dot Don't expand a dot to current directory in
output.
--show-tilde Output a tilde for HOME directory for
non-root.
--tty-only Stop processing options on the right if not on
tty.
--all, -a Print all matches in PATH, not just the first
--read-alias, -i Read list of aliases from stdin.
--skip-alias Ignore option --read-alias; don't read stdin.
--read-functions Read shell functions from stdin. --skip-functions Ignore option --read-functions; don't read
stdin.

I'm not sure which of those options busybox's 'which' supports.

Wade

#3 lore raw
Quoted 24 lines · Wade Berrier
Quoted 9 lines · Hamish Moffatt
Quoted 6 lines · jacmet at uclibc.org

Author: jacmet
Date: 2008-07-22 06:59:35 -0700 (Tue, 22 Jul 2008) New Revision: 22913

Log:
which: needs readline

What does this package do that busybox's which doesn't?

berrier:/home/wberrier # which --help
Usage: which [options] [--] programname [...]

Options: --version, -[vV] Print version and exit successfully.
--help, Print this help and exit successfully.
--skip-dot Skip directories in PATH that start with a
dot.
--skip-tilde Skip directories in PATH that start with a
tilde.
--show-dot Don't expand a dot to current directory in
output.
--show-tilde Output a tilde for HOME directory for
non-root.

Quoted 8 lines

--tty-only Stop processing options on the right if not on
tty.
--all, -a Print all matches in PATH, not just the first
--read-alias, -i Read list of aliases from stdin.
--skip-alias Ignore option --read-alias; don't read stdin.
--read-functions Read shell functions from stdin. --skip-functions Ignore option --read-functions; don't read
stdin.

Wow. busybox's version doesn't have any of that, and neither does zsh's. debian's debianutils version only has -a.

Very fancy. I can't imagine ever wanting most of those features - which is meant to show you which command is being run, to skipping aliases and parts of your $PATH doesn't seem very useful.

Anyway, thanks for the info.

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>