Unexpected alias substitution of "do"
Yash rejects the following script as syntax error:
alias fori='for i ' do=';' set 1 fori do echo $i; done
However, this script should print "1" without error. Alias substitution should not be applied to "do" because it is a reserved word.
Another alias-related bug. In the POSIXly correct mode, an unquoted "esac" cannot be the first pattern in a case list even if it is preceded by "(". The following script should be rejected:
alias CASE='case esac in ( ' ESAC='esac' CASE ESAC ) echo esac; esac
magicant への返信
This has been fixed since r3873
Fixed in r3898
A test case for the "case" command bug was added in r3901 .
Yash rejects the following script as syntax error:
However, this script should print "1" without error. Alias substitution should not be applied to "do" because it is a reserved word.