Skip to content

track down and fix alias expansion issues in functions #65

Description

@tomasohara

A two-part bug report and followup check.

  1. Some functions defined using aliases are note being expanded properly (e.g., the new fgr-py-etc). The aliases have to be reloaded for them to be OK:
$ fgr-py-etc fubar
-bash: fgr-py: command not found
-bash: fgr-jupyter: command not found


$ show-macros fgr-py-etc
fgr-py-etc ()
{
    fgr-py "$@";
    fgr-jupyter "$@"
}

$ all-tomohara-aliases

$ show-macros fgr-py-etc
fgr-py-etc ()
{
    fgr-ext py "$@";
    fgr-ext ipynb "$@"
}

$ fgr-py-etc fubar
./tests/test_simple_batspp.py:42:## FUBAR = system.getenv_bool("FUBAR", False,
./tests/test_simple_batspp.py:45:FUBAR_TEST = r"""
  1. A check should be done to see which macros are affected. A workaround is to use simple-alias-fn instead of alias.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions