help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

detecting no arguments in $@


From: dora-solomon
Subject: detecting no arguments in $@
Date: Sun, 25 Jul 2021 13:14:01 +0200 (CEST)

Thank you Alex


From: Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
To: dora-solomon@brusseler.com
Subject: Re: detecting no arguments in $@
Date: 25/07/2021 13:10:28 Europe/Paris
Cc: help-bash <help-bash@gnu.org>

(( ! $# ))

$# being 0
0 args

otherwise

for arg ; do
[[ ! $arg ]] && printf empty_arg\\n
done

On Sun, Jul 25, 2021 at 1:08 PM <dora-solomon@brusseler.com> wrote:
>
>
> Is it possible to figure out whether there are no arguments in $@ ?
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]