Re: Bash – $(( )) vs. $[]

Johnny Rosenberg gurus.knugum at gmail.com
Tue Dec 4 17:47:32 UTC 2012


2012/12/4 Oliver Grawert <ogra at ubuntu.com>:
> hi,
> Am Montag, den 03.12.2012, 20:14 +0100 schrieb Johnny Rosenberg:
>> Okay, I suspected that. I never use dash anyway, so I guess I'll
>> continue to use the bash specific style then. Thanks!
> you use dash as soon as a script doesnt run as your user, if you write
> shell scripts it is good practice to use POSIX compliant code ...
>
> indeed if its only scripts you run when being logged in so that your
> defined user shell is used, there is no prob with writing it for bash
> only.
>
> and indeed you can force usage of bash (with all its disadvantages) by
> setting
> #!/bin/bash
> in your script.

That's what I do all the time, yes.

Disadvantages, such as?


Kind regards

Johnny Rosenberg
ジョニー・ローゼンバーグ



>
> ciao
>         oli
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list