[Bash-completion-devel] [bash-completion-Bugs][312306] chown test "crashes" on FreeBSD (no "root" group)

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Sat Jan 30 09:38:48 UTC 2010


Bugs item #312306, was opened at 2010-01-30 11:38 by Ville Skyttä 
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312306&group_id=100114

Status: Open
Priority: 2
Submitted By: Ville Skyttä  (scop-guest)
Assigned to: Nobody (None)
Summary: chown test "crashes" on FreeBSD (no "root" group) 
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
FreeBSD does not have  a "root" group which I guess is the reason for this "crash":

Running ./completion/chown.exp ...
ERROR: tcl error sourcing ./completion/chown.exp.
ERROR:        0
child process exited abnormally
    while executing
"exec bash -c "compgen -A group $partgroup" | wc -l"
    (file "lib/completions/chown.exp" line 3)
    invoked from within
"if {[assert_bash_type chown]} {
    source "lib/completions/chown.exp"
}"
    (file "./completion/chown.exp" line 1)
    invoked from within
"source ./completion/chown.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source ./completion/chown.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

I wonder if we should make this test system dependent (blindly use for example the "wheel" group on FreeBSD, maybe other *BSD) or use root's primary group as the test group (id -gn root) or loop through a list of group names until one is found (for example root, wheel, other) and use that for the tests or something else...

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312306&group_id=100114



More information about the Bash-completion-devel mailing list