Firefox behaving differently
Oliver Grawert
ogra at ubuntu.com
Tue Sep 19 11:12:53 UTC 2023
hi,
Am Montag, dem 18.09.2023 um 23:34 -0400 schrieb Little Girl:
> Hey there,
>
> Karl Auer wrote:
> > Little Girl wrote:
> > > Karl Auer wrote:
>
> > > > #!/bin/sh +
> > >
> > > What does the + do in this line? I haven't been able to find out
> > > on
> > > Google.
> >
> > I have no idea :-) Typo?
> >
> > Let me know if you find out.
>
> Oh, darn. I was hoping you'd know. The best I've been able to find is
> an example that uses a minus rather than a plus. It's a difficult
> thing to search for, because Google keeps treating the plus as
> conversational even if it's put into quotes.
>
plus and minus are used to turn on/off certain featues of your shell
(stop on error is -e ... stop when uninitalized variables are used -u,
etc etc) more often people use "set +x" (to print out every line and
variable at execution) or some such inside the script itself, adding
the plus/minus option to the hashbang is just the short form of using
set further down ...
that said, just using a plus sign without a letter option is very
likely a typo/omission ...
from man dash:
dash [-aCefnuvxIimqVEbp] [+aCefnuvxIimqVEbp] ...
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230919/ddea664e/attachment.sig>
More information about the ubuntu-users
mailing list