LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2019, 02:08 PM   #1
jaymar
LQ Newbie
 
Registered: Jun 2019
Location: UK
Distribution: kubuntu
Posts: 2

Rep: Reputation: Disabled
Question switched from bash to zsh


mutt -z -f =mbox works in bash.
in zsh I have to escape the = sign otherwise it says file not found.
Any idea why the difference?
 
Old 06-11-2019, 07:07 PM   #2
Contrapak
Member
 
Registered: May 2019
Location: /home/
Distribution: Arch Linux
Posts: 109

Rep: Reputation: 14
Why the switch? What's wrong with bash?
 
Old 06-11-2019, 09:14 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,669

Rep: Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802
why the difference?
because it is a completely different shell type.
zsh != bash
now you got a learn zsh, or as one said, Why the switch? What's wrong with bash?
 
Old 06-11-2019, 09:21 PM   #4
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,097

Rep: Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075
A brief web search said something I didnt completely understand about zsh treating = as defining the following word as a command. Start with the zsh man pages.
 
Old 06-12-2019, 02:47 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,355

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by BW-userx View Post
why the difference?
because it is a completely different shell type.
zsh != bash
now you got a learn zsh, or as one said, Why the switch? What's wrong with bash?
Apple just announced that they were making zsh the default shell on OSX. (Anything it takes for Apple to be "different", eh?) Maybe that was the OP's aim: to become zsh-proficient before his next Macbook update at work throws him/her for a loop. With more and more Linux-using sites handing out Macbooks to their Linux administrators, there's going to be a lot of uproar about that. Hopefully they'll be leaving bash on the OS, though. Otherwise I predict a lot "brew install bash" commands being executed.
 
Old 06-12-2019, 03:19 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,669

Rep: Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802
Quote:
Originally Posted by rnturn View Post
Apple just announced that they were making zsh the default shell on OSX. (Anything it takes for Apple to be "different", eh?) Maybe that was the OP's aim: to become zsh-proficient before his next Macbook update at work throws him/her for a loop. With more and more Linux-using sites handing out Macbooks to their Linux administrators, there's going to be a lot of uproar about that. Hopefully they'll be leaving bash on the OS, though. Otherwise I predict a lot "brew install bash" commands being executed.
I never looked into it until just NOW.
What is ZSH, and Why Should You Use It Instead of Bash?

seems to have little quirts as a result of what that says about it.


How to Customize your Terminal with ZSH

so my question is can only one terminal emulator be made to use just zsh and others bash or whatever else ?

Last edited by BW-userx; 06-12-2019 at 03:25 PM.
 
Old 06-12-2019, 04:45 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,669

Rep: Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802
Just switch to c what I c, about 15 minutes ago, bash scripts run. #!/bin/bash of course they should.

Code:
 userx@arcooo ‚ ~ ‚ 
zle-line-init:echoti:1: no such terminfo capability: smkx
besides that in some of my terminals. Eterm, mxvrt.

I am not sure about the MUTT thing, I do not use it to test that.
 
Old 06-12-2019, 06:44 PM   #8
jaymar
LQ Newbie
 
Registered: Jun 2019
Location: UK
Distribution: kubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
Got it. As scasey said it's to do with = expansion.
I put 'setopt noequals' in my .zshrc file and it now works as expected ( As I expected ).
 
Old 06-12-2019, 08:02 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,669

Rep: Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802
goood
FYI
if you got a bunch of aliases from bash I found if you put them in a file called .aliases
put this in .zshrc
Code:
source $HOME/.aliases
and mine work...
 
Old 06-13-2019, 12:43 AM   #10
Ktasy
LQ Newbie
 
Registered: Jun 2019
Posts: 10

Rep: Reputation: 0
bash seems better.
 
Old 06-13-2019, 01:15 AM   #11
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,097

Rep: Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075
Quote:
Originally Posted by jaymar View Post
Got it. As scasey said it's to do with = expansion.
I put 'setopt noequals' in my .zshrc file and it now works as expected ( As I expected ).
Glad we found a resolution.. if you wish, you can mark the thread solved using the Thread Tools at the top of the thread.

...and welcome to LQ!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ZSH -- Apple switching BASH => ZSH, what do you think? LQParsons Linux - Newbie 2 06-06-2019 10:01 AM
LXer: How to Setup ZSH and Oh-my-zsh on Linux LXer Syndicated Linux News 0 11-02-2017 12:42 AM
Bash or Zsh reddazz Linux - General 5 05-27-2005 08:16 AM
Change /bin/bash to /bin/zsh Smokey Slackware 12 07-14-2004 01:06 AM
zsh equivalents in bash saurya_s Linux - General 1 01-04-2004 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration