From Old Japanese ただし, from ただ (tada, “just, but”) + し (shi, emphatic particle).
但(ただ)し or 但(たゞ)し • (tadashi)