LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2011, 01:52 AM   #1
dar_beh_dar
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora
Posts: 21

Rep: Reputation: 1
Making zsh see my scripts


Hello everyone,

I am using Ubuntu (9.04) and recently installed the Zed shell 'zsh'.
I am planning to explore it a bit before setting it as my default shell.
I did go through the configuration steps at the start when I first invoked
'zsh'.

In 'bash' I can use a series of customized search scripts which I keep in a subdirectory in my home directory say /home/thisuser/scripts.

This has been added to the $PATH and in 'bash' I can see the utilities contained in there and use them.

When I invoke 'zsh' from 'bash', 'zsh' can't see my '~/scripts' directory and its contents even though you can type

echo $PATH

and you'll see the :~/scripts: components in the path.

I know I'm doing something wrong..but what?

Regards

dar_beh_dar
 
Old 03-03-2011, 02:47 AM   #2
kuyalfinator
Member
 
Registered: Jul 2003
Location: Los Angeles
Distribution: RedHat8 2.4.18-14 RedHat9 2.4.20-8 FreeBSD 5.2.1 Ubuntu 10_4 Mandrake 2.4.21-0.13mdk
Posts: 118

Rep: Reputation: 16
Is your ZSH scripts set as executable? Try the chmod command. chmod 640 or chmod 700 on the script your trying to access.
 
Old 03-03-2011, 03:58 AM   #3
dar_beh_dar
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora
Posts: 21

Original Poster
Rep: Reputation: 1
Positive.

They are all -rwxrwxr-x and are all kept under '~/scripts'

However your suggestion caused me to do something else:

I changed '~' to '/home/<user>/' and bada-bing...it works!

I think that it might vaguely have to do with differences
between 'zsh' and 'bash'.
 
  


Reply



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
making a smarter shut down scripts zymos Linux - General 4 05-10-2006 01:00 PM
making zsh the default corbis_demon Linux - General 2 12-21-2004 03:15 PM
Need help w/ making DNS entries w/ scripts imsam Linux - Networking 1 10-27-2004 08:09 AM
Simple scripts for making isos and burning them on cd! jlturbos Linux - General 3 02-27-2004 06:52 AM
Making desktop shortcuts to scripts? lokis_trickster Slackware 5 01-15-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:38 PM.

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
Open Source Consulting | Domain Registration