Comments (2)
pws apparently doesn't like this idea — not surprised tbh.
cf. workers/18792, workers/18794
from zsh.
Oliver's almost-finished implementation of namerefs from workers/15058 would at least partially address this, since it retains the local level of the referenced parameter at the time of definition.
It's not a complete solution for me, though, since it can't work with special parameters like argv
(which are set automatically when entering a new function scope), and even for normal parameters, you have to define the reference before any locals, which precludes it from working quite reliably in conjunction with argument parsing and similar.
It could be an inspiration though; at the very least it shows how to resolve outer-scope parameters.
from zsh.
Related Issues (16)
- `kill -l` with bogus numeric signal n outputs n & 127
- Enhancements to getopts re: +o options
- Offer a ZSH_EXECUTABLE_PATH or similar?
- zsh's own completion function is sad
- Make (k) and (v) flags work with arrays
- Completion of options containing special characters is unreliable
- Date-format completion is broken
- Issues with signames.c generation (SIGRTMIN, &c.)
- err_exit misbehaviour involving function call inside else
- Tied parameters not restored correctly after pre-command re-assignment
- no_unset doesn't apply in arithmetic contexts HOT 1
- Array elements not restored correctly after pre-command re-assignment
- :A modifier reacts badly to pattern meta-characters
- Completion menu order doesn't always respect locale
- De-duplication of unsorted completion possibilities is very slow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh.