Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
View Poll Results: What is your preferred Linux login shell?
|
ash
|
  
|
0 |
0% |
bash
|
  
|
287 |
81.77% |
csh
|
  
|
4 |
1.14% |
dash
|
  
|
3 |
0.85% |
es
|
  
|
0 |
0% |
fish
|
  
|
2 |
0.57% |
ksh
|
  
|
18 |
5.13% |
pdksh
|
  
|
2 |
0.57% |
rc
|
  
|
1 |
0.28% |
scsh
|
  
|
0 |
0% |
sh
|
  
|
3 |
0.85% |
tcsh
|
  
|
10 |
2.85% |
wish
|
  
|
0 |
0% |
zsh
|
  
|
16 |
4.56% |
Other
|
  
|
5 |
1.42% |
 |
|
06-27-2014, 03:12 PM
|
#91
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,314
|
Quote:
Originally Posted by Gullible Jones
Today bash stopped noticing backslash characters for some reason, so I just switched to mksh...
|
Are you not the least bit curious to understand why bash would do such a thing, or what the actual cause of the problem might be?
Last edited by astrogeek; 06-27-2014 at 03:13 PM.
|
|
|
06-27-2014, 03:55 PM
|
#92
|
Member
Registered: Apr 2011
Posts: 142
Rep:
|
No. I may come back to this later, but right now I'd rather have a shell that just worked.
Edit: actually this is more interesting than I thought; I thought it was undocumented shell option behavior, but it did not go away when I reset the shell options to defaults. Scary. I had better look into it.
Thanks.
Last edited by Gullible Jones; 06-27-2014 at 03:58 PM.
|
|
|
06-27-2014, 04:09 PM
|
#93
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,314
|
Quote:
Originally Posted by Gullible Jones
No. I may come back to this later, but right now I'd rather have a shell that just worked.
Edit: actually this is more interesting than I thought; I thought it was undocumented shell option behavior, but it did not go away when I reset the shell options to defaults. Scary. I had better look into it.
Thanks.
|
I have to admit it made me curious. Can you give an example of what is happening?
(EDIT: I see that you have opened a thread for this, will follow it there...)
Last edited by astrogeek; 06-27-2014 at 04:16 PM.
|
|
|
06-27-2014, 05:31 PM
|
#94
|
Member
Registered: Nov 2012
Posts: 85
Rep: 
|
Quote:
Originally Posted by evo2
Hi,
I was dumped in tsch on DEC and Solaris machines in the mid to late 90s. When I started using Linux in the early 00s I persisted with tcsh since that's what I was used to. I was however told from the beginning that I should not use csh/tsch for scripts, so I was used to looping and branching in sh but not in csh. I'd find myself sometimes typing "bash" at my tcsh prompt to do some things, which after a while lead me to actually trying bash as my login shell. It took me a while to get it set up how I liked it, but once there I was very happy. Around this time I noticed that some of the wizards were using zsh, a few years later I gave it a try and again, after getting it set up to my liking I've been very happy with - the transition from bash to zsh is trivial compared to tcsh to bash.
Evo2.
|
======================
I suspect you just answered to question as to why bash is so popular.
I too used the DEC once upon a time. I found tcsh did not fit my thought processes. I ran the canned programs the company had on it and left it alone otherwise. Just like most people do with Window$. At a point in time I needed to go beyond what the programmers of a specialty of which they knew nothing of had provided. The UNIX on the DEC did not blow up as much as Window$. (These programs were directly responsible for the DEC problems, but could be "blown away" without killing the OS by simply killing the window they were in.) That lead me to researching Unix and Linux. I selected Linux because it fit my "work process" better. It came with a number of shells (front ends). I started with the old standard sh and soon found its limits. csh and others and my idea of how to proceed through a problem clashed. I tried bash and like you said, I tailored it to me and been using it since. It has some serious shortcomings but is 95% effective.
In looking through the comments I get the feeling most of those posting are actually not programmers. I also get the feeling most have not been shown any kind of creative processing process. Thus the lack of understanding of scripting uses. Being able to pilot a process through command line : GUI : command line : and so forth to completion by way of a script is what gives Linux it's power.
This really doesn't belong here but:
... forget the boxes, the lines, the arrows
... use the old fashion Term Paper Outline
... create the steps in a file as comments.
... fill in with the code.
Creating the Outline forces you to think it out. Logically.
and it is easy to follow.
Norseman01
Last edited by Norseman01; 06-27-2014 at 05:35 PM.
|
|
|
06-27-2014, 10:22 PM
|
#95
|
LQ Newbie
Registered: Aug 2013
Posts: 2
Rep: 
|
preferred linux login shell
my preferred login is cinnamon, it is v/well laid out user friendly better than windows obviously. I have used linux for 2decades just love this.
|
|
|
06-29-2014, 02:54 PM
|
#96
|
LQ Newbie
Registered: Jun 2014
Posts: 9
Rep:
|
bash bash bash
|
|
|
06-30-2014, 09:35 AM
|
#97
|
Member
Registered: Apr 2011
Posts: 142
Rep:
|
Quote:
Originally Posted by astrogeek
I have to admit it made me curious. Can you give an example of what is happening?
(EDIT: I see that you have opened a thread for this, will follow it there...)
|
It was a stray character in /etc/inputrc.
And I'm still sticking with mksh. It's great to have a shell that handles terminal resizes properly, instead of claiming to and failing like bash.
|
|
|
06-30-2014, 06:35 PM
|
#98
|
Member
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757
Rep: 
|
Quote:
Originally Posted by Gullible Jones
It was a stray character in /etc/inputrc. 
|
Stray characters have caused many weird behaviors (usually in ~/.inputrc). And so have intentional, but incorrect characters. I'm kind of scared to touch it.
|
|
|
07-01-2014, 09:41 AM
|
#99
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep: 
|
Quote:
Originally Posted by astrogeek
Code:
# PgUp/PgDw cycles trough history only for matching entries
"\e[5~": history-search-backward # Previous
"\e[6~": history-search-forward # Next
|
It works on my machine, but I get two messages like this
Code:
\e[5~:: command not found
\e[6~:: command not found
What might that mean?
Last edited by JZL240I-U; 07-01-2014 at 09:43 AM.
|
|
|
07-01-2014, 12:12 PM
|
#100
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by JZL240I-U
It works on my machine, but I get two messages like this
Code:
\e[5~:: command not found
\e[6~:: command not found
What might that mean?
|
You have to use the bind command: https://wiki.archlinux.org/index.php...ory_completion
|
|
1 members found this post helpful.
|
07-02-2014, 02:31 AM
|
#101
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep: 
|
Ahh, yess. Works flawlessly. Thanks, TobiSGD  .
|
|
|
07-12-2014, 08:52 AM
|
#102
|
Member
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406
Rep:
|
ditto bash here.
|
|
|
07-12-2014, 07:25 PM
|
#103
|
Member
Registered: Apr 2012
Location: California
Posts: 422
Rep: 
|
bash. It does most of what I want. I just discovered vi mode, which is great because I'm on a vim kick.
I've been trying to get zsh working, but it seems borked on ubuntu, or maybe it's just borked in general. Still, the tab completion features are quite inspiring.
ksh seems like the unholy child of shell and a general purpose programming language. That's either great if you haven't discovered Python* and want to do everything in your shell's language. Given the choice, I'd rather keep the shell for wiring programs together and use a general purpose language for more complicated things like dealing with abstract data types, math and other things I can't wring out of the standard tools.
*sub in your language of choice here.
|
|
|
07-13-2014, 02:11 AM
|
#104
|
Member
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171
Rep:
|
I use bash the vast majority of the time, I have used zsh in the past on a few occasions and I like its completion feature. At the moment I am trying to get more familiar with bash scripting as it's used everywhere and I'm trying to improve my scripts from being simply commands copy/pasted with minor if/else statements or cases. The syntax is really not what I am use to (python\java\c#) so it's a bit of a doozy.
|
|
|
07-16-2014, 10:20 AM
|
#105
|
LQ Newbie
Registered: Jun 2014
Location: Northern New York State
Posts: 12
Rep: 
|
I use bash mostly, and have been getting better at writing shell scripts in it.
My Raspberry Pi is running PiBang with no GUI, and it defaults to zsh. I've started playing with that and I like it. If I can get sufficiently up to speed with it on the RasPi, I will consider using zsh on my personal GNU/Linux systems.
I will leave bash on the production systems at work, though, as I'm not the only one who uses them.
________________________
Slackware 14.0 (CLI), Linux Mint 13 MATE, Windows 7, Windows XP, and Windows 2000 at work
Kubuntu 12.04.4 and Windows 7 dual-booting on the laptop
MEPIS 11.0 on the home desktop (soon to become Linux Mint 17 KDE) dual-booting with Windows 7
PiBang v.20131119 (CLI) on the Raspberry Pi old model B (256 MB RAM)
|
|
|
All times are GMT -5. The time now is 06:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|