help-bash
[Top][All Lists]
Advanced

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

Re: Help fixing NativeMessaging host: read 32-bit message length in nati


From: Greg Wooledge
Subject: Re: Help fixing NativeMessaging host: read 32-bit message length in native byte order
Date: Sat, 24 Jun 2023 20:59:56 -0400

On Sat, Jun 24, 2023 at 08:38:31PM -0400, Lawrence Velázquez wrote:
> To my knowledge, the following simple assignments are equivalent
> to bash, although they may not be in other shells in certain
> circumstances.
> 
>       data=$line
>       data="$line"
> 
> Perhaps Dan is underexplaining or misattributing the quoting issue
> he encountered.

Those assignments are equivalent in all POSIX shells.  The right hand
side of a simple variable assignment is one of the places where quotes
are optional.

Another place quotes are optional is the word following "case".



reply via email to

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