You are not logged in.

#26 2009-01-05 18:40:51

CuleX
Member
Registered: 2007-09-15
Posts: 107

Re: alternative shells: fish, hotwire, rush ecc

I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?

http://heirloom.sourceforge.net/sh.html

Offline

#27 2009-01-05 19:02:25

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: alternative shells: fish, hotwire, rush ecc

CuleX wrote:

I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?

http://heirloom.sourceforge.net/sh.html

Is this for real? hmm

Well I like the minimalism and simplicity but born shell is too minimal for me.

Offline

#28 2009-01-05 20:34:10

jerryluc
Member
From: Norway
Registered: 2008-05-20
Posts: 95

Re: alternative shells: fish, hotwire, rush ecc

Because of this thread i´ve decided to try out zsh. So far I like it.. that "comlete" thing is much better...

Offline

#29 2009-01-05 20:50:30

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: alternative shells: fish, hotwire, rush ecc

@CuLeX: There is also dash in the repos, or is this even smaller?

Offline

#30 2009-01-05 22:31:40

alex_anthony
Member
From: UK
Registered: 2007-09-25
Posts: 344

Re: alternative shells: fish, hotwire, rush ecc

Anyone know a way to replace newlines in a file with \n?
This is the last hurdle to the fish header I want - it will only accept 1 line as the greeting message, so my weather report which goes to /tmp/weather which has multiple lines needs them removing, but it does print \n as a newline

Offline

#31 2009-01-05 22:37:11

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: alternative shells: fish, hotwire, rush ecc

As far as I know fish is derived from zsh. In zsh, you can have a newline by inserting a "physical" newline, i.e. using the enter key, inside double quotes. For example, this is how my PS1 looks like:

PS1="
 [%{${fg_bold[yellow]}%}%d%{$reset_color%}]
 > "

You may want to try that, if you haven't already.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#32 2009-01-06 00:44:28

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: alternative shells: fish, hotwire, rush ecc

alex_anthony wrote:

Anyone know a way to replace newlines in a file with \n?
This is the last hurdle to the fish header I want - it will only accept 1 line as the greeting message, so my weather report which goes to /tmp/weather which has multiple lines needs them removing, but it does print \n as a newline

Probably you have to use double quotes. Look at this code:

arael@infinity ~> set fish_greeting ( echo "Fish\nshell\nrocks\n" )
arael@infinity ~> fish
Fish
shell
rocks

arael@infinity ~>

Did the nautilus-actions solved your problem?



EDIT: Sorry, I misunderstood again. You need to remove \n from your file. Well, you could use tr, sed or awk for that purpose.

Here are some examples: http://linux.dsplabs.com.au/rmnl-remove … -ssam-p65/

arael[~]$cat file_with_new_lines.txt 
Fish
Shell
Rocks
arael[~]$tr '\n' ' ' < file_with_new_lines.txt 
Fish Shell Rocks arael[~]$

Last edited by ArchArael (2009-01-06 01:14:08)

Offline

#33 2009-01-06 00:55:55

cardinals_fan
Member
From: /dev/null
Registered: 2008-02-03
Posts: 248

Re: alternative shells: fish, hotwire, rush ecc

CuleX wrote:

I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?

http://heirloom.sourceforge.net/sh.html

I like the Bourne shell for scripting.


Segmentation fault (core dumped)

Offline

#34 2009-01-06 01:03:25

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: alternative shells: fish, hotwire, rush ecc

cardinals_fan wrote:
CuleX wrote:

I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?

http://heirloom.sourceforge.net/sh.html

I like the Bourne shell for scripting.

All my scripts are in bash but I think that fish syntax and coherence is much better.

Offline

#35 2009-01-06 02:41:42

cardinals_fan
Member
From: /dev/null
Registered: 2008-02-03
Posts: 248

Re: alternative shells: fish, hotwire, rush ecc

ArchArael wrote:

All my scripts are in bash but I think that fish syntax and coherence is much better.

The Bourne shell is definitely not as sophisticated as the big boys.  However, I very often need to write a script that just executes a few of my other scripts, and it's ideal for that purpose.


Segmentation fault (core dumped)

Offline

#36 2009-01-06 06:31:20

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: alternative shells: fish, hotwire, rush ecc

OK not to hijack this thread (forgive me O Shell Gods & Godesses) but I could use a bit of guidance because I thought about 2 questions while going through this thread.

1)  Is there a good "Idiots guide to ZSH" or even a "Converting from Bash to Zsh for Morons" (TM)?  I tried Zsh once but I ran into a few niggly issues like not being able to run certain commands.  This was months ago so my memory is probably faulty.

2) I tried hotwire once but I could not get it to work, or so I thought... It dropped me to a seemingly "dead" prompt?  I couldn't get it to display characters or issue commands properly.  Also I didn't understand what the reason for using Hotwire would be either, even after reading the wiki about Hotwire there seemed no clear "reasoning" to use it?  This stood in contrast to the reason I've read to use the Csh shell (if you're a coder it apparently uses a lot of C/C+ conventions you'd be familiar with if you used C at all).

Offline

#37 2009-01-06 17:36:17

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: alternative shells: fish, hotwire, rush ecc

MoonSwan wrote:

OK not to hijack this thread (forgive me O Shell Gods & Godesses) but I could use a bit of guidance because I thought about 2 questions while going through this thread.

1)  Is there a good "Idiots guide to ZSH" or even a "Converting from Bash to Zsh for Morons" (TM)?  I tried Zsh once but I ran into a few niggly issues like not being able to run certain commands.  This was months ago so my memory is probably faulty.

2) I tried hotwire once but I could not get it to work, or so I thought... It dropped me to a seemingly "dead" prompt?  I couldn't get it to display characters or issue commands properly.  Also I didn't understand what the reason for using Hotwire would be either, even after reading the wiki about Hotwire there seemed no clear "reasoning" to use it?  This stood in contrast to the reason I've read to use the Csh shell (if you're a coder it apparently uses a lot of C/C+ conventions you'd be familiar with if you used C at all).

1) Maybe this can help you: http://www.amazon.com/Bash-Z-Shell-Conq … 1590593766

2) Well, hotwire from aur is working fine on my machine: http://aur.archlinux.org/packages.php?ID=12103

I don't know csh very well but if you like it you should read this old but interesting article: http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Last edited by ArchArael (2009-01-06 19:26:02)

Offline

#38 2009-01-06 18:13:44

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: alternative shells: fish, hotwire, rush ecc

The Zsh User's Guide is pretty good, too.


(lambda ())

Offline

#39 2009-01-07 01:44:41

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: alternative shells: fish, hotwire, rush ecc

Ah yay thanks Andre for the guide!  I coudln't find that last night.

@archarael, thanks dunno I tried hotwire on another distro & it didn't seem to work for some odd reason.  I'm not interested in csh per se, I was just using it as an example of what the seeming "purpose" is for some shells, and wondered if hotwire has a similar "purpose" per se.

Offline

#40 2009-01-11 13:11:08

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: alternative shells: fish, hotwire, rush ecc

I mainly use bash for scripting, cause I'm used to it.  But I tried fish, and it's now my default shell.  I like fish.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#41 2009-01-24 08:32:55

doorknob60
Member
Registered: 2008-09-29
Posts: 404

Re: alternative shells: fish, hotwire, rush ecc

Zsh for me smile

Offline

#42 2009-01-24 16:06:01

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: alternative shells: fish, hotwire, rush ecc

Does anyone around here use tcsh?

I work for a physicist and it seems like most of them use tcsh and a lot of instructions are written for it. Does anyone like this shell over bash? I was thinking of playing with it myself, but I don't want to get confused between the two, so if I change over, I want to stay with it.

Offline

Board footer

Powered by FluxBB