Re: [dev] Focusing on windows by name
I think [ "$foo" ] will work too. No need for -n. But yeah. Bashisms did lot of brain damage
On 26/10/2011, at 20:09, Rob <robpilling_AT_gmail.com> wrote:
> On 26 October 2011 14:51, Peter John Hartman <peterjohnhartman_AT_gmail.com> wrote:
>> I do something similar:
>>
>> if [[ $foo != "" ]]; then
>
> [ -n "$foo" ]
>
> if you're going for POSIX.
>
Received on Wed Oct 26 2011 - 20:26:32 CEST
This archive was generated by hypermail 2.3.0
: Wed Oct 26 2011 - 20:36:04 CEST