[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: consistency probs w/ 'readonly -f' & 'export -f
From: |
L A Walsh |
Subject: |
Re: consistency probs w/ 'readonly -f' & 'export -f |
Date: |
Thu, 08 Jun 2017 15:48:21 -0700 |
User-agent: |
Thunderbird |
Ooops... some more testing...
L
First) readonly & export by show vars in a re-usable format, however,
this doesn't work for functions.
---
It actually seems to be re-usable... though not nearly as
concisely as the var listing format.
Second) What is the official way to list functions w/their
flags+definitions
in a way reusable as input?
---
See above.
Third) How can one print the flags on a single function?
using> declare -pf <funcname>
output:
<funcname> ()
{
<content>
}
declare -frx <funcname>
Which REALLY BEGS the QUESTION:
why [is] the "declare [flags] name=value"
format ... prevented from working for functions?
Sure seems like it would allow for some better consistency in
some circumstances, not to mention a more compact function-definition
form for re-use.
- consistency probs w/ 'readonly -f' & 'export -f, L A Walsh, 2017/06/08
- Re: consistency probs w/ 'readonly -f' & 'export -f,
L A Walsh <=
- Re: consistency probs w/ 'readonly -f' & 'export -f, Greg Wooledge, 2017/06/09
- Re: consistency probs var & function re-use, L A Walsh, 2017/06/09
- Re: consistency probs var & function re-use, Chris F.A. Johnson, 2017/06/09
- Re: consistency probs var & function re-use, L A Walsh, 2017/06/09
- Re: consistency probs var & function re-use, Chris F.A. Johnson, 2017/06/09
- Re: consistency probs var & function re-use, Chris F.A. Johnson, 2017/06/09
- Re: consistency probs var & function re-use, L A Walsh, 2017/06/11
- Re: consistency probs var & function re-use, L A Walsh, 2017/06/11