[Bash Scripting] About redirecting an output

Joel Bryan Juliano joelbryan.juliano at gmail.com
Sun Feb 25 18:10:10 UTC 2007


On 2/25/07, Georg Sauthoff <g_sauthoff at web.de> wrote:
> On 2007-02-25, Joel Bryan Juliano <joelbryan.juliano at gmail.com> wrote:
>
> Hi,
>
> > if your going to use #!/bin/sh, you need to explicitly define your syntax.
>
> > for example in bash this is fine.
>
> > if [ -z $MY_CONDITION ]; then
> >  foo
> > fi
>
> > but in dash, it's not.
> > you'll have to put the semicolon delimiter on every command.
>
> really? Then dash is not IEEE Std 1003.1 compliant? Because
> http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_10
> defines newline as a valid command separator.
>
> Best regards
> Georg Sauthoff
>
>

Yup, this is what I did to solve my problems with dash.
No matter what, it _SOLVES_ the issue.

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


-- 
"I use to fuel my car with water, now I switched back to gasoline
because my cigarette lighter doesn't work" - People who use Linux but
switched back to Windows.




More information about the ubuntu-users mailing list