LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2010, 11:01 AM   #1
SilversleevesX
Member
 
Registered: May 2009
Posts: 181
Blog Entries: 9

Rep: Reputation: 15
Idea for shell "translator" utility


Usability? Home: you use bash. Work, school, vacation, seminar: you're stuck using zsh or tcsh (or Drush in Drupal).

Function: Without giving errors, quietly cross-checks a non-shell command for its equivalent in the running shell and executes that command, properly-syntaxed.

Name: Well, as the word "imperative" in rudimentary linguistics is a synonym for "command," I thought of an acronym derived from the terms SHell Imperatives Translator. But this morning, I re-thought the lavatorial acronym. Considering it was a "container" of "hooks" that had the potential to operate much like a stripped-down cron or Ubuntu hook bundle, a more polite term for it would be "tacklebox".

BZT
 
Old 07-25-2010, 11:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by SilversleevesX View Post
you're stuck using zsh or tcsh
No I'm not.


Quote:
Originally Posted by SilversleevesX View Post
Without giving errors, quietly cross-checks a non-shell command for its equivalent in the running shell and executes that command, properly-syntaxed.
Good luck! And do let us know when you've got a working prototype.


* BTW I see no questions anywhere so rather than post it in the /Programming forum maybe next time use your web log?

Last edited by unSpawn; 07-25-2010 at 11:38 AM.
 
Old 07-25-2010, 11:47 AM   #3
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by SilversleevesX View Post
...you're stuck using zsh or tcsh ...
Huh ?


Code:
sergei@amdam2:~/junk> ~/AFSWD/install/bash-4.1/binsh/bash-4.1.generic_wrapper ldd -v ~/AFSWD/install/bash-4.1/bin/bash
        not a dynamic executable
sergei@amdam2:~/junk>
sergei@amdam2:~/junk> file ~/AFSWD/install/bash-4.1/bin/bash
/home/sergei/AFSWD/install/bash-4.1/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.4, statically linked, not stripped
sergei@amdam2:~/junk>

, i.e. just create a statically linked 'bash' and bring it with you. Put it into any directory and run it from there.

Last edited by Sergei Steshenko; 07-25-2010 at 11:49 AM.
 
  


Reply



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
"ush", my plain english, inteligent shell translation layer idea. Siljrath General 21 11-28-2013 09:07 AM
"decoder wheel" translator script btm Linux - Newbie 1 10-18-2007 09:41 AM
Wired to Wireless "translator"? reverse Linux - Wireless Networking 2 08-16-2007 02:23 AM
LXer: MS: OK. OK, we'll set up an "OS" project to build an ODF killer. Er, we mean translator. LXer Syndicated Linux News 0 07-07-2006 04:54 AM
"multiboot utility" and "dell utility partition" on dell i5150 xround Linux - Laptop and Netbook 5 04-21-2005 09:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:03 PM.

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