Skip to content

Better error checking (unexpected results running with no/unknown parameters) #2

@gingerbeardman

Description

@gingerbeardman
  • $ checksums.sh -help
/usr/bin/basename: illegal option -- h
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
mdls: unrecognized option `-help'
/usr/bin/stat: illegal option -- h
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
(standard_in) 1: parse error
(standard_in) 1: parse error
  • checksums.sh --help
/usr/bin/basename: illegal option -- -
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
mdls: unrecognized option `--help'
/usr/bin/stat: illegal option -- -
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
(standard_in) 1: parse error
(standard_in) 1: parse error
  • checksums.sh (no parameter)
stat: : stat: No such file or directory
(standard_in) 1: parse error
(standard_in) 1: parse error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions