Users browsing this thread: 1 Guest(s)
pranomostro
Long time nixers
I am not using zsh, instead I divide between shell scripting in rc and interactive usage of fish.

I like rc for these reasons:
-it's small-I used to do a lot of sh scripting and learned all of rc in two hours
-it's not backwards-compatible-I like it if people are brave enough to throw old ideas away and learn from the earlier design mistakes
-one big advantage is the way shell quoting is implemented. When I look at this page (http://mywiki.wooledge.org/BashPitfalls) most of the issues are quoting errors. Rc has very simple quoting rules and avoids this kind of errors in a very elegant way
the quoting rules are:
text is quoted in single quotes 'abc'. if you want to quote single quotes, you write a double quote, so '''abc''' expands to 'abc'. Variables are expanded into their whole content and treated as one single string, so
a='this file'
rm $a
does not remove this and file, but 'this file'. To save multiple variables, you use a list:
a=('this file' 'that file')
touch $a
creates 'this file' and 'that file'.

Fish on the other hand is like a zsh with less/no configuration and also a non-standard syntax. It has syntax-highlighting and quite good tab completion.


Messages In This Thread
Preferred shell - by gurhush - 30-08-2012, 05:30 AM
RE: Preferred shell - by yrmt - 30-08-2012, 07:45 AM
RE: Preferred shell - by matt - 30-08-2012, 07:53 AM
RE: Preferred shell - by gholen - 30-08-2012, 07:54 AM
RE: Preferred shell - by Phyrne - 30-08-2012, 10:55 AM
RE: Preferred shell - by crshd - 30-08-2012, 01:42 PM
RE: Preferred shell - by Shiru - 30-08-2012, 04:30 PM
RE: Preferred shell - by gurhush - 30-08-2012, 06:01 PM
RE: Preferred shell - by Saos - 30-08-2012, 07:14 PM
RE: Preferred shell - by Jayro - 31-08-2012, 11:13 AM
RE: Preferred shell - by deadgone - 04-09-2012, 02:19 PM
RE: Preferred shell - by yrmt - 04-09-2012, 03:12 PM
RE: Preferred shell - by xyzodiac - 04-09-2012, 03:43 PM
RE: Preferred shell - by venam - 05-09-2012, 05:58 AM
RE: Preferred shell - by crshd - 06-09-2012, 11:00 AM
RE: Preferred shell - by yrmt - 06-09-2012, 01:19 PM
RE: Preferred shell - by Mafia - 07-09-2012, 11:32 AM
RE: Preferred shell - by CrossFold - 13-09-2012, 05:33 AM
RE: Preferred shell - by pranomostro - 01-09-2015, 06:17 AM
RE: Preferred shell - by greduan - 06-09-2015, 10:18 PM
RE: Preferred shell - by z3bra - 07-09-2015, 06:33 AM
RE: Preferred shell - by pranomostro - 07-09-2015, 02:29 PM
RE: Preferred shell - by ninjacharlie - 07-09-2015, 09:04 PM
RE: Preferred shell - by cjm - 07-09-2015, 11:18 PM
RE: Preferred shell - by October - 08-09-2015, 02:54 AM
RE: Preferred shell - by henriqueleng - 08-09-2015, 05:07 PM
RE: Preferred shell - by skrzyp - 09-09-2015, 12:09 PM
RE: Preferred shell - by xero - 09-09-2015, 12:48 PM
RE: Preferred shell - by Pr0Wolf29 - 11-09-2015, 04:03 AM
RE: Preferred shell - by b4dtR1p - 11-09-2015, 05:33 AM