24b67 Which shell do you use? - Page 3 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #51  
Old June 14th, 2010, 17:43
darkshadow's Avatar
darkshadow darkshadow is offline
Member
 
Join Date: Nov 2008
Location: amman jordan
Posts: 170
Thanks: 24
Thanked 9 Times in 7 Posts
Default zsh

I love zsh , and it is great take a look http://zsh.sourceforge.net/Doc/Relea...roduction.html
__________________
I dont mind if the girl I love , loves FreeBSD more than me.

Last edited by darkshadow; June 14th, 2010 at 19:16.
Reply With Quote
  #52  
Old June 14th, 2010, 17:54
nekoexmachina's Avatar
nekoexmachina nekoexmachina is offline
Member
 
Join Date: Jan 2010
Location: Russia
Posts: 310
Thanks: 66
Thanked 21 Times in 21 Posts
Default

i use zsh too, but may be i'll switch to csh for interactive shell if i'll find time to configure it as my zsh.
Reply With Quote
  #53  
Old June 14th, 2010, 18:56
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

tcsh because I'm lazy. I don't use very many features but I'm used to the completion paradigm of tcsh on freebsd, and I have no good reason to change, since it's in /bin.

I usually install zsh and pdksh (& sometimes mksh) and every once in a great while I'll change my ol' user account over to one, but I go back to tcsh after a couple of days.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
  #54  
Old June 14th, 2010, 22:08
ah7013 ah7013 is offline
Junior Member
 
Join Date: Apr 2010
Location: Auckland, New Zealand
Posts: 10
Thanks: 5
Thanked 2 Times in 1 Post
Default

bash for me because I come from a Linux background and all the Linux distros I have tried used bash so i'm just used to it.
__________________
Running: FreeBSD 8.2-RELEASE, 9.0-BETA2
Reply With Quote
  #55  
Old June 14th, 2010, 22:57
ckester's Avatar
ckester ckester is offline
Member
 
Join Date: Nov 2008
Location: near Seattle, WA (USA)
Posts: 288
Thanks: 28
Thanked 36 Times in 31 Posts
Default

I've been using mksh since seeing killasmurf recommend it in another thread.

Reasons: size, speed, absence of GNUish cruft. Ability to redirect stderr. Enhanced pattern matching in variable substitutions. Reasonable license!
Reply With Quote
  #56  
Old June 15th, 2010, 00:38
hedwards hedwards is offline
Member
 
Join Date: Nov 2008
Posts: 189
Thanks: 3
Thanked 18 Times in 16 Posts
Default

For my main user account, I've switched from tcsh to bash on account of all the scary things I was reading about the c shells. The main one being that other shells have the ability to evaluate what a command is going to expand to without actually executing it.

But, as for root, I'll leave it as is forever. If, however, one is going to change it then for God's sake keep it as one of the ones which is shipped as a part of the base system. Having had the experience earlier today where I couldn't log in as myself because I hadn't finished the dependencies for bash I'd highly recommend against using ports for root's shell.

I do however dislike the way that bash handles the history. It's always irritated me that you can't type in a few characters of the command and skip to just the commands you've entered that start with those characters.
Reply With Quote
  #57  
Old June 15th, 2010, 11:34
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,861
Thanks: 30
Thanked 1,896 Times in 1,338 Posts
Default

Quote:
Originally Posted by ckester View Post
I've been using mksh since seeing killasmurf recommend it in another thread.

Reasons: size, speed, absence of GNUish cruft. Ability to redirect stderr. Enhanced pattern matching in variable substitutions. Reasonable license!
I've switched to mksh from bash as well. Less clutter, better speed, and with the included mkshrc sample it can be made to look like bash with minor tweaks. And NO dependencies whatsoever!
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #58  
Old June 15th, 2010, 15:56
ckester's Avatar
ckester ckester is offline
Member
 
Join Date: Nov 2008
Location: near Seattle, WA (USA)
Posts: 288
Thanks: 28
Thanked 36 Times in 31 Posts
Default

I didn't know about that mkshrc sample, Dutch. Thanks for pointing it out. Something to play with today!

The .profile I'd been using with bash seems to be working just as well with mksh, without needing any edits. What I liked in bash is apparently just the stuff they borrowed from Korn shell, and not any of their own "innovations".
Reply With Quote
  #59  
Old June 15th, 2010, 16:40
olav's Avatar
olav olav is offline
Member
 
Join Date: Apr 2010
Location: Norway, Stavanger
Posts: 344
Thanks: 27
Thanked 23 Times in 22 Posts
Default

Im using bash mostly, but after reading this thread I have to check out mksh

Last edited by olav; June 15th, 2010 at 21:29.
Reply With Quote
  #60  
Old June 15th, 2010, 17:30
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,525
Thanks: 422
Thanked 607 Times in 475 Posts
Default

sh vs bash vs mksh
Reply With Quote
The Following User Says Thank You to graudeejs For This Useful Post:
mirabilos (June 17th, 2010)
  #61  
Old June 16th, 2010, 01:10
hedwards hedwards is offline
Member
 
Join Date: Nov 2008
Posts: 189
Thanks: 3
Thanked 18 Times in 16 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
Those results aren't terribly surprising. The clone of the Bourne Shell FreeBSD uses ought to be quite a bit quicker as it doesn't incorporate as much cruft as bash does.
Reply With Quote
  #62  
Old June 16th, 2010, 03:35
carlton_draught's Avatar
carlton_draught carlton_draught is offline
Member
 
Join Date: Mar 2010
Posts: 288
Thanks: 158
Thanked 27 Times in 20 Posts
Default

I used sh for root, and bash for users. In root, I always switch straight to bash for interactive use. Scripts are done in sh when I have a choice. However, I will have a look at some of the more popular options after reviewing this thread.
Reply With Quote
  #63  
Old June 16th, 2010, 05:45
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,525
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Quote:
Originally Posted by hedwards View Post
Those results aren't terribly surprising. The clone of the Bourne Shell FreeBSD uses ought to be quite a bit quicker as it doesn't incorporate as much cruft as bash does.
So what cool stuff do you do with bash, that other shells can't do?

http://en.wikipedia.org/wiki/Compari...omputer_shells
Reply With Quote
  #64  
Old June 17th, 2010, 06:45
lme@'s Avatar
lme@ lme@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Düsseldorf, Germany
Posts: 589
Thanks: 44
Thanked 181 Times in 90 Posts
Default

Now that our beloved Bourne Shell got support for filename completion, we can all switch to it!
See http://svn.freebsd.org/viewvc/base?v...evision=209221
Reply With Quote
  #65  
Old June 17th, 2010, 12:16
BrainDamage BrainDamage is offline
Junior Member
 
Join Date: Feb 2010
Location: Kiel, northern Germany
Posts: 13
Thanks: 1
Thanked 5 Times in 4 Posts
Default

zsh for interactive use
csh as default for root account, but normally I switch over and use the zsh
Reply With Quote
  #66  
Old June 17th, 2010, 17:14
mirabilos mirabilos is offline
Junior Member
 
Join Date: Jun 2010
Posts: 4
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by lme@ View Post
Now that our beloved Bourne Shell got support for filename completion, we can all switch to it!
It’s actually an almost-POSIX shell, not(!) a Bourne shell,
with broken behaviour for "sh -c 'somescript' -- foo bar baz"
which mksh can emulate when compiled with a specific option,
-DMKSH_MIDNIGHTBSD01ASH_COMPAT, and then when either called
with “-o sh” or as sh when compiled with -DMKSH_BINSHREDUCED.

I’d say ditch it. MidnightBSD is doing so, and they like mksh.
Reply With Quote
  #67  
Old June 18th, 2010, 01:10
fairy fairy is offline
Banned
 
Join Date: Jun 2010
Posts: 34
Thanks: 4,294,967,295
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
You could have included zsh. It's usually faster than bash and has better sh emulation.
Anyway, shell scripts are easy to rewrite for bash/zsh/whatever so that they're faster than on /bin/sh. You'll see real performance when you reduce external commands to minimum.
Reply With Quote
  #68  
Old June 18th, 2010, 02:26
loop loop is offline
Junior Member
 
Join Date: Nov 2008
Posts: 52
Thanks: 5
Thanked 3 Times in 3 Posts
Default

csh for root, zsh for user.

I've been using zsh for years ... mostly for it's completion abilities (I'm a lazy typist . Started using it well before any of the other shells featured built-in completion, and haven't bothered to change
Reply With Quote
  #69  
Old June 18th, 2010, 03:38
ckester's Avatar
ckester ckester is offline
Member
 
Join Date: Nov 2008
Location: near Seattle, WA (USA)
Posts: 288
Thanks: 28
Thanked 36 Times in 31 Posts
Default

It looks like those of us who are looking for something other than bash are about evenly divided between mksh and zsh. Perhaps we need to do a head-to-head comparison between these two. What benchmarks do you suggest?
Reply With Quote
  #70  
Old June 18th, 2010, 08:46
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,722
Thanks: 215
Thanked 143 Times in 89 Posts
Default

Hi. I use bash but i want to use mksh but i didn't find none .mkshrc sample googling. Even on mirbsd site.
Is anyone how can post one or give me a url with a sample?
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #71  
Old June 18th, 2010, 14:45
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,861
Thanks: 30
Thanked 1,896 Times in 1,338 Posts
Default

Ports install examples under /usr/local/share/examples/.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #72  
Old June 18th, 2010, 15:02
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,722
Thanks: 215
Thanked 143 Times in 89 Posts
Default

This was the path i was searching for. I found it and i copy it on my home directory.
I set alias ls='ls -G' and i have colorised terminal
But how can i colorise my hostname too?
I don't understand nothing on this file
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
  #73  
Old June 18th, 2010, 16:24
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,525
Thanks: 422
Thanked 607 Times in 475 Posts
Default

I've read man mksh.
As I understand, you can't colorize it (without some trick, which have side effects)

At least I can post small replies
Reply With Quote
  #74  
Old June 18th, 2010, 17:05
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,861
Thanks: 30
Thanked 1,896 Times in 1,338 Posts
Default

The default (included) .mkshrc colorizes with ls -G
No additional settings have been made.

Just tried without any .mkshrc .. still colorizes.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---

Last edited by DutchDaemon; June 18th, 2010 at 17:11.
Reply With Quote
  #75  
Old June 19th, 2010, 00:10
sk8harddiefast's Avatar
sk8harddiefast sk8harddiefast is offline
Senior Member
 
Join Date: Mar 2010
Location: Athens, Greece
Posts: 1,722
Thanks: 215
Thanked 143 Times in 89 Posts
Default

Quote:
Just tried without any .mkshrc .. still colorizes.
On me default is not ls -G. Is ls -F.
No. Without any .mkshrc on my home directory all colours are white
Also without any .mkshrc is not giving me hostname before $
I open mksh from bash. This is possible to make the difference?
__________________
====================================
| -------> UNIX. Live Free Or Die! <-------- |
====================================
You can say: I can't do something because is difficult.
You must say: I tried a lot before say that I can't.
Never Give up.
http://unixsystems.dyndns.org/
I am not an BSD expert. But I really want to help.
Don't afraid to ask me anything. If I can I will help!

Nice wallpapers to make your desktop more hardcore :) ---> http://forums.freebsd.org/showthread.php?t=13416
Reply With Quote
Reply

Tags
shell

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Support Adobe Flash (shell script) soko1 Howtos & FAQs (Moderated) 9 September 11th, 2012 15:50


All times are GMT +1. The time now is 01:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0