Package: dash
Version: 0.5.12-6

Hello,

I use actually dash on Fedora version 0.5.12-1.fc38, but the only way to report bugs towards dash seems to be the Debian bug tracker system.

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_03_01 says:

2.3.1 Alias Substitution

When used as specified by this volume of POSIX.1-2017, alias definitions shall not be inherited by separate invocations of the shell or by the utility execution environments invoked by the shell.


So a subshell shall have no knowledge about the aliases from the supershell, and backticks start a subshell.

These programs

#!/bin/bash
alias wslpath=echo
find `wslpath /tmp`


and

#!/bin/dash
alias wslpath=echo
find `wslpath /tmp`

produce different results (bash 5.2.15-3.fc38) when executed on a WSL2 system. The former program shows the content of the current directory, the latter program shows the content of /tmp .

Kind regards
  Dilyan

Reply via email to