Re: alias in bash script issue
On Sun, Mar 05, 2023 at 09:26:41AM +0800, Ken Young wrote:
> On Sat, Mar 4, 2023 at 5:53 PM David <bouncingcats@gmail.com> wrote:
> > Debian's default shell is 'dash'. Its manual, readable using 'man dash',
> > says
> my debian 11's default shell is just bash.
>
> root@nxacloud-bloghost:~# echo $SHELL
>
> /bin/bash
Both statements are correct, within their contexts.
The default *interactive* shell for user accounts is /bin/bash.
The default /bin/sh symlink (for scripts using #!/bin/sh, etc.) is dash.
The author of a script chooses whether the shebang says #!/bin/bash
(which makes it a bash script) or #!/bin/sh (which makes it an sh script).
The languages are different.
Reply to: