LinuxQuestions.org
Visit Jeremy's Blog.
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 06-10-2015, 10:21 AM   #1
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Rep: Reputation: Disabled
Will Bash Become Object Oriented?


I LOVE bash the way it is now, and I'm having a lot of fun reading tutorials, and learning it. However, do you think that in the near future that bash will become OO?

I understand the convenience, but I really don't want it too.

I ask because not too long ago I was learning Powershell, and they are beginning to make it more OO, introducing classes, methods, and properties. Some people make the argument that Powershell should have been straight C#. I read on the MSDN blog, that powershell was designed by a group of people who all have a Unix background.
 
Old 06-10-2015, 10:26 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I see zero chance of this happening, but if you want a shell that's (IMHO) superior in every way including syntax, try FISH.
 
Old 06-10-2015, 10:47 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Nexusfactor View Post
I ask because not too long ago I was learning Powershell, and they are beginning to make it more OO, introducing classes, methods, and properties. Some people make the argument that Powershell should have been straight C#. I read on the MSDN blog, that powershell was designed by a group of people who all have a Unix background.
Powershell was designed from the beginning to interface with Microsoft's .Net framework to make system management easier. Having object oriented capabilities (I doubt that it ever will be completely object oriented) does make sense there. For Bash it doesn't. People that want object oriented system administration can do that easily with Python.
 
Old 06-10-2015, 12:46 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by TobiSGD View Post
Powershell was designed from the beginning to interface with Microsoft's .Net framework to make system management easier. Having object oriented capabilities (I doubt that it ever will be completely object oriented) does make sense there. For Bash it doesn't. People that want object oriented system administration can do that easily with Python.
Indeed, I'm fairly sure that I read somewhere (probably MS's Hey Scripting Guy website) that PowerShell was designed to be object-orientated from the start because Windows is supposedly that way.
Since Linux isn't object-orientated I doubt BASH would go that way.
 
Old 06-10-2015, 12:50 PM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
bash is written in c which usually isnt object-oriented.
 
Old 06-10-2015, 01:57 PM   #6
SCSIraidGURU
Member
 
Registered: Oct 2014
Posts: 69

Rep: Reputation: Disabled
You might consider getting Visual Studio for Linux and learning VB and C# instead of Bash.
 
Old 06-10-2015, 02:14 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Windows is not object-oriented. At least, the Win32 API was not.
 
Old 06-10-2015, 02:14 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by SCSIraidGURU View Post
You might consider getting Visual Studio for Linux and learning VB and C# instead of Bash.
How is this helpful or even relevant to the OP's question?

You seem to be on a campagin to promote C-pound-sign to GNU/Linux users, even having stated that most applications are now written in C-pound-sign and that C-pound-sign has replaced C/C++ - totally false!

Please do not pollute this forum with unhelpful and false posts not related to GNU/Linux.
 
2 members found this post helpful.
Old 06-10-2015, 02:30 PM   #9
SCSIraidGURU
Member
 
Registered: Oct 2014
Posts: 69

Rep: Reputation: Disabled
I have spent 33 years programming. Most front ends for applications are done in VB and the backend code is C#, VB.Net, and ASP.Net. I have played with every flavor of Linux and every version of Windows. Most programming jobs I have done is Windows. The Linux servers are mainly web servers. My wife is a web programmer. Every job she has had has been C# or VB. Limiting yourself to Linux cuts your world of opportunity by 95. I would learn to program for both worlds, if you want a job as a programmer. You will find more Microsoft than Linux in data centers.
 
Old 06-10-2015, 02:42 PM   #10
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by SCSIraidGURU View Post
I have spent 33 years programming. Most front ends for applications are done in VB and the backend code is C#, VB.Net, and ASP.Net...
Since your experience is almost totally Micr0$0ft product oriented and your GNU/Linux knowledge is obviously lacking, perhaps you should be participating in a Micr0$0ft oriented forum.

This site is "LinuxQuestions.org" in case you had not noticed.

I do not mean to be unkind, but LQ is known as a source for quality GNU/Linux information and most of those who participate would like to keep it that way. Incorrect and irrelevant posts degrade the overall quality of the information here and skew search results for those looking for Linux help.

Last edited by astrogeek; 06-10-2015 at 04:53 PM. Reason: Shortened quote, removed M$ clickbait
 
2 members found this post helpful.
Old 06-10-2015, 03:54 PM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
SCSIraidGURU, don't post if you have nothing to contribute to the topic under discussion.

Last edited by dugan; 06-10-2015 at 04:01 PM.
 
1 members found this post helpful.
Old 06-10-2015, 07:27 PM   #12
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
I would not expect a-n-y significant changes to be made to the bash shell. There's simply too much code out there which "is tied-together with bash-scripts, bailing wire, bubble gum and spit, but it works."

The good news is: you can pick any shell you want! There are lots of shells out there already, and always room for one more. The requirements that Linux/Unix has for "a shell process" are comparatively simple: I've even deployed a script as "the shell" for a (kiosk ...) user session.

You can also execute a shell-program from within your existing session. The shell-program that you execute will be aware that it is not "the shell."
 
Old 06-11-2015, 12:54 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
[offtopic]
Quote:
Originally Posted by SCSIraidGURU View Post
I have spent 33 years programming.
I have spent more than 20, and I worked at really "big" multinational companies, like for example IBM (but telecommunication related)

Quote:
Originally Posted by SCSIraidGURU View Post
Most front ends for applications are done in VB and the backend code is C#, VB.Net, and ASP.Net.
This is simply not true, we (almost) never used VB, C# and .Net, just unix and linux.
[/offtopic]

yes, by its nature the common command interpreter (sh?) will never be object oriented (at least I think so), that is nonsense, that should simply execute commands line by line without that overhead. If bash turned to be OO it also would be replaced by other, "simple" shell....

But as it was mentioned everyone can use python, perl or whatever he/she wants to make OO programming.
 
Old 06-11-2015, 04:06 AM   #14
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
BASH is shell proramming language and atleast supports POSIX Shell specification. So it won't deviate much. For OO there are other many OO languages.
 
Old 06-11-2015, 05:32 AM   #15
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
absurd question
use ruby or python or whatever, they all can be used also as 'shell'
 
  


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
Object oriented design tutorial wakatana Programming 8 09-13-2010 11:47 PM
Object-oriented C memory leak MTK358 Programming 37 12-19-2009 04:51 PM
object oriented advice in C++ xeon123 Programming 5 05-02-2007 09:20 AM
How to write a object oriented program using c ssg14j Programming 6 08-10-2005 09:56 AM
Object-Oriented Design Citizen Bleys Programming 2 02-11-2002 01:25 PM

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

All times are GMT -5. The time now is 10:39 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