bug-bash
[Top][All Lists]
Advanced

[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.





reply via email to

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