46.6k views
1 vote
The n modifier after the tilde forces the index variable to expand only to the ______

User Hardanger
by
5.2k points

1 Answer

1 vote

Answer: filename and extension.

Step-by-step explanation:

Suppose we have %~nxa, where we have two modifiers n and x, and a single variable a.

So, the n modifier after the tilde forces the index variable to expand only to the filename(by the n modifier) and the extension(by the x modifier).

It produces the filename and extension instead of the full path.

User Alon Zilberman
by
4.8k points