goto --expand not return 1 on error
semseysandor opened this issue · 0 comments
semseysandor commented
If goto --expand
would return 1 on error (as it does in other commands), it could be used easier to check if alias exist before creating.
E.g.:
if ! goto -x foo >/dev/null 2>&1; then
goto -r foo /bar
fi