Hi,
On Thu, Jul 10, 2008 at 15:11, Arjan van Dijk <[EMAIL PROTECTED]> wrote:
> Hi!
>
> When I use the shell-menu within NEdit to call my compiler as follows:
>
> pgf90 -c `./getdeps.exe myfile.f90`
>
> then NEdit gives me this message:
>
> /usr/local/lf9562/csh_setup: No such file or directory.
>
> My version of NEdit is:
>
> NEdit 5.5
> Sep 30, 2004
>
> Built on: Linux, 386, GNU C
> Built at: Oct 1 2004, 15:55:40
> With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
> Running Motif: 2.1 [unknown]
> Server: Hummingbird Ltd. 11000
> Visual: 24-bit TrueColor (ID 0x24, Default)
> Locale: en_US.UTF-8
>
> What can be wrong?
What is your login shell? Csh is the default NEdit shell for
shell-menu commands. You should test it with this shell or select a
new shell for NEdit.
@devs (yeah, this includes me): Maybe we should include the shell in
the version output. Like the attached patch?
Bert
>
> Regards,
>
>
> Arjan
---
nedit/source/help.c | 5 ++++-
nedit/source/preferences.c | 7 +++----
nedit/source/preferences.h | 1 +
3 files changed, 8 insertions(+), 5 deletions(-)
diff --quilt old/nedit/source/help.c new/nedit/source/help.c
--- old/nedit/source/help.c
+++ new/nedit/source/help.c
@@ -236,6 +236,8 @@ static const char *getBuildInfo(void)
" Server: %s %d\n"
" Visual: %s\n"
" Locale: %s\n"
+ " NEdit Shell: %s\n"
+ "Default Shell: %s\n"
;
static const char *visualClass[] = {"StaticGray", "GrayScale",
@@ -278,7 +280,8 @@ static const char *getBuildInfo(void)
(NULL == TheDisplay ? "<unknown>" : ServerVendor(TheDisplay)),
(NULL == TheDisplay ? 0 : VendorRelease(TheDisplay)),
visualStr,
- locale ? locale : "None");
+ locale ? locale : "None",
+ GetPrefShell(), GetDefaultShell());
if (stab == MotifKnownBad)
strcat(bldInfoString, warning);
diff --quilt old/nedit/source/preferences.c new/nedit/source/preferences.c
--- old/nedit/source/preferences.c
+++ new/nedit/source/preferences.c
@@ -1245,7 +1245,6 @@ static int stringReplace(char **inString
int replaceLen);
static int replaceMacroIfUnchanged(const char* oldText, const char* newStart,
const char* newEnd);
-static const char* getDefaultShell(void);
#ifdef SGI_CUSTOM
@@ -1413,11 +1412,11 @@ static void translatePrefFormats(int con
/*
** The default set for the comand shell in PrefDescrip ("DEFAULT") is
** only a place-holder, the actual default is the user's login shell
- ** (or whatever is implemented in getDefaultShell()). We put the login
+ ** (or whatever is implemented in GetDefaultShell()). We put the login
** shell's name in PrefData here.
*/
if (0 == strcmp(PrefData.shell, "DEFAULT")) {
- strncpy(PrefData.shell, getDefaultShell(), MAXPATHLEN);
+ strncpy(PrefData.shell, GetDefaultShell(), MAXPATHLEN);
PrefData.shell[MAXPATHLEN] = '\0';
}
@@ -6505,7 +6504,7 @@ void ChooseColors(WindowInfo *window)
** shell, currently defined as the user's login shell.
** In case of errors, the fallback of "sh" will be returned.
*/
-static const char* getDefaultShell(void)
+const char* GetDefaultShell(void)
{
struct passwd* passwdEntry = NULL;
static char shellBuffer[MAXPATHLEN + 1] = "sh";
diff --quilt old/nedit/source/preferences.h new/nedit/source/preferences.h
--- old/nedit/source/preferences.h
+++ new/nedit/source/preferences.h
@@ -149,6 +149,7 @@ char *GetPrefColorName(int colorIndex);
void SetPrefColorName(int colorIndex, const char *color);
void SetPrefShell(const char *shell);
const char* GetPrefShell(void);
+const char* GetDefaultShell(void);
char *GetPrefGeometry(void);
char *GetPrefServerName(void);
char *GetPrefBGMenuBtn(void);
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop