mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 15:57:05 -05:00
This moves the function of the noaliases variable into the checkkwd variable. This way it is properly reset on errors and aliases can be used normally in the commands for each case (the case labels recognize the keyword esac but no aliases). The new code is clearer as well. Obtained from: dash
6 lines
91 B
Text
6 lines
91 B
Text
# $FreeBSD$
|
|
|
|
alias alias0=exit
|
|
x=alias0
|
|
eval 'case $x in "alias0") alias0 0;; esac'
|
|
exit 1
|