LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-27-2021, 02:56 PM   #16
JennyKara
LQ Newbie
 
Registered: Dec 2021
Posts: 3

Rep: Reputation: 0

An alternative to eval is Function. Just like eval, Function takes some expression as a string for execution, except, rather than outputting the result directly, it returns an anonymous function to you that you can call.
 
Old 12-29-2021, 07:25 AM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by JennyKara View Post
An alternative to eval is Function. Just like eval, Function takes some expression as a string for execution, except, rather than outputting the result directly, it returns an anonymous function to you that you can call.
Sounds interesting. Can you give an example?
 
Old 12-29-2021, 07:44 AM   #18
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
@ondoho. All JennyKara posted until now on LQ was copy-pasted verbatim from somewhere else. The post above is no exception.
 
Old 12-29-2021, 08:25 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ so javascript, not sh. And probably a bot anyhow. :sigh:
Thanks for the info.

(it's already banned)
 
  


Reply

Tags
bash, eval, getopt



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] An eval alternative grail Programming 7 06-14-2012 02:24 PM
HELP! Installing Live-Eval 8.0 cheekygit Linux - Newbie 6 05-12-2003 05:23 AM
PHP eval() function nxny Programming 2 01-09-2003 02:39 PM
Suse 7.3 eval ramon Linux - General 1 01-19-2002 01:49 PM
suse 7.3 eval install on win2k machine blain Linux - Newbie 6 11-30-2001 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration