Search Results

Search: Posts Made By: vina201unx2011
2,228
Posted By vina201unx2011
My bash version is: $ bash --version GNU...
My bash version is:

$ bash --version
GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
Copyright (C) 2004 Free Software Foundation, Inc.
2,228
Posted By vina201unx2011
Double bracket giving error
here is a small script I wrote:

#! /bin/bash

if [[ $# == 0 ]]
then
echo "argument is null"
fi

It is giving error:
test.sh: [[: not found

any idea, why is it so?
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy