help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash invocation , functionality question ..


From: Greg Wooledge
Subject: Re: bash invocation , functionality question ..
Date: Fri, 7 Jun 2024 20:00:20 -0400

On Fri, Jun 07, 2024 at 10:33:20PM +0200, alex xmb sw ratchev wrote:
> i have
> /bin/sh :
> #!/bin/bash
> exec bash "$@"

I'm reading this as "I replaced the /bin/sh file or symlink on my
computer with a script that contains two lines".

This is not going to work.  Linux does not permit "chaining" shebangs.
That is, you cannot have a script which begins with #!/bin/sh if your
/bin/sh has another shebang of its own.  It won't work.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]