On 12/11/22 9:37 PM, L A Walsh wrote:
  This is mostly a 'nit', but I noticed I had
    "typeset -xr"
  in one of my scripts to mean export+read-only and
  was wondering why
    "export -r"
  was disallowed (err message):

bash: export: -r: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p

This seems to be an unnecessary "make-wrong", no?

No. There's no compelling reason to provide it. You can already do this,
as you discovered, using a builtin whose purpose is to assign attributes
to variables.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to