Searched hist:214291 (Results 1 - 2 of 2) sorted by relevance

/freebsd-10.0-release/tools/regression/bin/sh/parser/
H A Dfunc1.0214291 Sun Oct 24 18:45:19 MDT 2010 jilles sh: Make sure defined functions can actually be called.

Add some conservative checks on function names:
- Disallow expansions or quoting characters; these can only be called via
strange control characters
- Disallow '/'; these functions cannot be called anyway, as exec.c assumes
they are pathnames
- Make the CTL* bytes work properly in function names.

These are syntax errors.

POSIX does not require us to support more than names (letters, digits and
underscores, not starting with a digit), but I do not want to restrict it
that much at this time.

Exp-run done by: pav (with some other sh(1) changes)
/freebsd-10.0-release/bin/sh/
H A Dparser.cdiff 214291 Sun Oct 24 18:45:19 MDT 2010 jilles sh: Make sure defined functions can actually be called.

Add some conservative checks on function names:
- Disallow expansions or quoting characters; these can only be called via
strange control characters
- Disallow '/'; these functions cannot be called anyway, as exec.c assumes
they are pathnames
- Make the CTL* bytes work properly in function names.

These are syntax errors.

POSIX does not require us to support more than names (letters, digits and
underscores, not starting with a digit), but I do not want to restrict it
that much at this time.

Exp-run done by: pav (with some other sh(1) changes)

Completed in 90 milliseconds