endwise and %% dir expansion