OpenSolaris

Printable Version Enter a New Search
Bug ID 6476544
Synopsis acr argument processing could be improved
State 3-Accepted (Yes, that is a problem)
Category:Subcategory consolidation:os-net-tools
Keywords oss-bite-size
Sponsor
Submitter
Reported Against
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs
Submit Date 29-September-2006
Last Update Date 2-February-2009
Description
bash-3.00# /ws/onnv-tools/onbld/bin/acr -?
/ws/onnv-tools/onbld/bin/acr[45]: print: bad option(s)

code:

        if [ ! -s $root/etc/motd ]; then
                print -u2 "$root/etc/motd not found; this doesn't look like a" \
                    "valid root."
                exit 1
        fi

should be print -u2 -- "$root..."

Would also be nice if either -? was recognised as a "give me usage" or the code above printed usage.
Keywords: oss-bite-size
Work Around
N/A
Comments
N/A