You are not logged in.
I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?
Offline
I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?
Is this for real?
Well I like the minimalism and simplicity but born shell is too minimal for me.
Offline
Because of this thread i´ve decided to try out zsh. So far I like it.. that "comlete" thing is much better...
Offline
@CuLeX: There is also dash in the repos, or is this even smaller?
Offline
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
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
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
I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?
I like the Bourne shell for scripting.
Segmentation fault (core dumped)
Offline
CuleX wrote:I use hardcore bourne shell. Who needs all this clutter modern shells give anyway?
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
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
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
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
The Zsh User's Guide is pretty good, too.
(lambda ())
Offline
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
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
Zsh for me
Offline
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