mirror of
https://github.com/opnsense/src.git
synced 2026-02-11 23:06:12 -05:00
The special case of modifying an existing alias does not work correctly if the alias is currently in use. Instead, handle this case by unaliasing the old alias (if any) and then creating a new alias.
8 lines
65 B
Text
8 lines
65 B
Text
# $FreeBSD$
|
|
|
|
v=1
|
|
alias a='alias a=v=2
|
|
v=3
|
|
a'
|
|
eval a
|
|
[ "$v" = 2 ]
|