help-bash
[Top][All Lists]
Advanced

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

[Help-bash] Are declare and typeset exactly the same? Which one is more


From: Peng Yu
Subject: [Help-bash] Are declare and typeset exactly the same? Which one is more popular among all shells?
Date: Sat, 3 Aug 2019 20:28:22 -0500

Hi,

man bash says the following. I assume this means that declare and
typeset are exactly the same in bash. Is it so?

       declare [-aAfFgilnrtux] [-p] [name[=value] ...]
       typeset [-aAfFgilnrtux] [-p] [name[=value] ...]

ksh only has typeset. Is typeset more popular among all the
contemporary shells than declare? Thanks.

-- 
Regards,
Peng



reply via email to

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