Accéder au contenu principal

Sample, Bash Sub API for anybody ( pratical demonstration )


There is sample used to start a discussion in use of Variable within a __in_for function developed in context of completing some Programmation API like Javascript and PHP( with map_filter ) an equivalent in Bash* version [ GNU bash, version 4.0.33(1)-release] to use the Array and a common function with fixed member of Unique Parameter... You can download Here The API to get briefed with the example :
fnct_d-0.001-alpha_init.d_bash.tar.gz
Now included, a function to create a Gui and parse text with variable percentage of resume. Called OTS( Open Text Summerizer ), it something clever to show when explication weight several lines... It needs ubuntu with at least zenity package. Also, included for the first time, a crontab-launcher with dependency with fnct.d/fnct_lib with possibility to involve setting with pre-declared statement variable. This cron launcher had an example with. It shows you how to create list of shell-script to add at the end of the launcher... Of course the ultimate solution will be showed during session, courses. And fortunately, __call_locality had a new member pre-declared statement variable called __call_localityLocalName:


### example :
### follow context and come back if it's unclear.
function __test()
{
eval $( __call_localityLocalName=__test __call_locality ) ;
echo "${StrFuncName}" ;
}
### will print :
---> __test
function __test()
{
eval $( __call_locality ) ;
echo "${StrFuncName}" ;
}
### will print :
---> DefaultSubFunction

While inspecting __call_locality, don't forget to « promote C.O.R.P » ---HERE---

Context:
Using a simple Ubuntu Distribution through the VirtualBox station from you common installation, you may need to find executable name cvs and at least the GUI one, which is good for beginner... You may have only few knowledge in all command-line, and you may only know what preceding course on using packages under Debian and Ubuntu are working... Some utility like apt-src, apt-get, apt-file, dpkg and dpkg-deb are acquired through previous Personal Work in preceding chapter...

Takes following notes from fnct_lib the tiny Bash Function Left in this blog,


get_colis used in complement to extract a column-like... An ugly example with poems with Carriage return in every line will return the second word if you call it by piping a text and specifying two as parameter for get_col :( like cat grand-corps-malade.txt | get_col 2 )
eval $( __call_locality )Mandatory surrounded by «eval» and executive braces, will automatically create a parameter list from $*, called ArrayArg... Engine facility if you call it wrong ...
__in_for Equivalent to Javascript prototyping or simple Function with this embedded in corpus, or PHP map_filter(), or even Python map() is demonstrated here in bash function __in_for where first Argument is mandatory a Array... and any function designed to look inside the Array can Use ArrayArg[0] if __call_locality is evaluated ( Special case surround fixed parameter will produce another design and will change the order... but Posix remain clear in Argument processing). And, the beauty of __in_for is... the Array can hold its own property and it's index is propagated through the function calling... This mean Having an Array Called ArrayEx, inside a function designed with/without __call_locality will be available in the function designed with Member ${intArrayEx}, this mean intArrayEx is increased each-time, and both ArrayEx[intArrayEx] is accessible... and If the function body is designed with __call_locality ArrayEx[intArrayEx] and ${ArrayArg[0]} ( with no fixed parameter ) will give the same information...


Example:
### Finally... 
### This is unexplained inside conventional doc... Some distributions like Ubuntu and all 
### Debian, may hold on intermixing Argument between inline  declaration of ARRAY and $ARRAY. ### Actually There is talk because it's efficient and may be stronger to hold on python/bash ### code intermixing, but the preceding exercises is IMPORTANT to understanding code 
### alternative because some Distribution are not compatible yet with Argument Arrangement 
### introducing the argparse/wordish  python embedded processor with Bash Extension, you may ### fall down during the Bash Object-Generator Object in next chapter. But Tanks to source 
### this, it's provided a link for clang-fake-gcc python module have excellent example. 

# Setup script. Run me to install.

### example :
### follow context and come back if it's unclear.
function __test()
{
eval $( __call_localityLocalName=__test __call_locality ) ;
echo "${StrFuncName}" ;
}
### will print :
---> __test
function __test()
{
eval $( __call_locality ) ;
echo "${StrFuncName}" ;
}
### will print :
---> DefaultSubFunction

Following Discussion in Problems using multi-behavioring function, depending variable calling before function in this case submitted in previous source is using an echo as fixed parameter in __in_for calling... and the Body is acting differently... This is not The ArrayArg[0] that own Chunk of Array Information but ArrayArg[1]... Why, Posix calling conventions lead to impressive regulation and «octroi» an order of calling ; Starting with 'Program Name' 'Option' [ optionals options ] The Infor, by it's design Follow it's methodology claiming If only ArrayArg[0] is present by __in_for parameter declaration, mean only A datachunk is available, while Having ArrayArg[0] and ArrayArg[1] ( meaning ArrayArg[0] is fixed) will mean Item/Executive/Analytic member and 2nd and 3rd, data, option... This is why some person by the past already give a write-back of function with only Array Name and it's iterator...

And other hints, you can create a chain of Array and function... as long Array are unique, you can create a function with another __in_for passing another Array and central function will hold all iterator at the same... I did not develop any Frezing of lock-iterative method... still out of productivity and can create problems in Administration management

Topic still under essay, will be corrected by Tuesday with final draft... Any Student trying to work with pre-draft may facing couple of problems... Like doing free-work...

I prefer to invite person to leave e-mail, instead of playing a song at midnight with the explication embedded inside his song to tell me more about clang-fake-gcc... Hearing Clang like slang I was thinking in hip-hop like song... Until I remember this example invalidated in 2003 during a test phase... The famous inline declaration of ARG and $ARG under fedora distribution failed if not all Python module are installed... Did they already think doing code/argument intermixing... As ferry are old prediction... « It will have a Bash and a Python and the Admin action to axe the snake to kill the problems ».



Note:* : Bash is IEEE Standard 1003.1 compliant (Registration required to read all the content)
Note:** : IEEE 1003.2 is the Posix standard regulation for Regular Expression see: White paper on One Single Unix Specification.



  • 1No Interest
  • 2Somewhat good
  • 3Good
  • 4Exactly This.

Posts les plus consultés de ce blog

Les Juges de la cour Sûprème qualifient les tarifs de Trump illégaux, prochaine étape rendre ma communication ACN avec Trump disponible.

 C`est un gros titre et pourtant la prochaine étapes est bel et bien de parler des tarifs illégaux de Donald Trump. N'étant pas visé par l'Acier, bois et aluminium il reste les terres rares et les semi-conducteurs qui sont au cœur de la réalité informatique, la mémoire les disques dure à base de semi-conducteur et mieux encore ce que cache le terme "I'm covering it", dans une discussion avec Donald Trump et l'état des terres rares dans la vie des médias. Il y a la fibre optique hybride de Vidéotron qui contient, Oxide de gallium sour forme de vitre tel la tourmalines et sont pouvoir ionisant et le substrat samarium sur dopage d'étain ou zinc et autres métaux qui ne recouvre pas l'Or. Cette technologie européenne couvrant la technologie DOCSIS. J'étais au centre d'un artifice de support technique multi protocole et favorisé avec Bell, "A.C.N" Canada était un lien avec les Américains de Wasington, mais laissait toutes les technologies d...

I am developper and Network Administrator and I respond to does Won’t Teach to theirs Kids to Code.

 And not yet music composer. But I made A.T.R. with Netracker in the 1990, and i am satisfied to say it's also programming while as simple reality to result it's whats sound producing from this MIDI translation of music sample into note. It's not because it take 20 years to achieve another part of a dream consist to understand code being sound plugin where some L.A.D.S.P.A. teach me howto drive the information and eventually re-create the plugin that turn the electricity down but from plugins activity. But I can say, my case involving having and partner that did the homework job in database to complete code where in a script alike Perl and I did learn from my same example I am showing online and about to expose because the first part is done. In fact it's having the plenty design and the code for 25 year in head since I did this homework in 1999-2000. The worst, I can give demonstration of a complex problem in users need, to have a system that does everything, and some ...

And Madness around !

 Like Pauline Marois we do share problematic interaction with recidivist activities of well known descendant of 'Mad House' resident of Taylor effort ... The one who provide the money to Tesla to make itself great as well, and itself so fortunate to turn into madness, Taylor story at Bareau will eventually tell more but historical truth is the mean. Recidivist of quasi lethal action where expert confirm illness into mental illness are falling apart and sometime forgeted. That's also the family story to let forget and people pretend to make apart. But it's expert case against civil-hand signature to retrieve them temporary. In case of harassing people for specific reason like for Pauline Marois case for hate against women at the power. So you do get the point why a WOMEN WITH ALL THE MONEY AT THE POWER can only bring another recidivist doing the same. I do stay in medical problem avoiding myself seiing myself as LBGTQ2+ because it madness initiated fault of my father bel...