-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

I think the introduction of a new variable used by the shell would be cool for 
advanced scripting. I'd name it $~ or $GLOB, and the idea is that, everytime 
the shell expands a shell glob, this variable is set to the expanded result of 
the last glob meta character.

The use case arose from the update-jupprc script I sent to miros-discuss 
earlier. Here is an example:

[[ $line = " BEGIN "*" SECTION" ]] && print -r -- "Now in section $~"

It would make the implementation of advanced state machines more generic.

Cheers
Nik
- --
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8-fdroid

iQFNBAEBCgA3BQJSRWiMMBxEb21pbmlrIEdlb3JnZSAobW9iaWxlIGtleSkgPG5p
a0BuYXR1cmFsbmV0LmRlPgAKCRAvLbGk0zMOJR04B/9iGB3ql7avbNLUTLr8Fyb1
J6S5+XpjnuPYL6vGVVJoIaOS8RrhQ+l0gBZmVIrJpywG+BOPkuO+j2Ho/HvyQv7/
JVEo7LcAi9uHjp/kJc8ne0hLhUAAuIjeON0cYIC7s1VgYmmOxhfDYcJZpjq73oK7
VXa/RFYbMfsGyq6Oxnlujr9SkbBEp3+VhsoGtGSvHJWC7y7+nB/pewECnihu1IA1
A3oLei3Ot2QN5HVz0oI/xT4ZkxKWHRSN1nfzAjjJ9XJJ4/EseuLW4vz5GJlp7nAW
m0qchAT0gyinRxsKnMP+zetXIYuc7fKN9meSqcsT/nCd/TXV2WES4sMY6g5DqumJ
=s+PA
-----END PGP SIGNATURE-----

Reply via email to