bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs dired problems with globbing and exported functions on AIX


From: Daniel Ortmann
Subject: emacs dired problems with globbing and exported functions on AIX
Date: 15 Jan 2001 18:40:46 -0600

This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

In GNU Emacs 20.7.1 (i386--freebsd, X toolkit)
 of Fri Sep 22 2000 on pyrl.eye
configured using `configure  --with-x-toolkit --with-pop --prefix=/usr/local 
i386--freebsd'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

(THIS PROBLEM REPORT REFERS TO AIX DIRED MODE, /bin/sh AND BASH.  I
suspect that /bin/sh may be behaving too much like ksh with respect to
exported functions.  I send this from my home system since my work
machine is having email problems.)

I previously reported a dired problem where C-x d pwrspice* RET
(i.e. using wildcards with dired) added "*" and other marks (as if from
ls -lF) to the dired buffer's file names.

These extra marks left dired unable to recognize file names correctly.

The problem was that I am using the BASH SHELL AND AM USING EXPORTED
FUNCTIONS, INCLUDING 'ls'!!!

Since the shell is invoked to expand globs in names, IT IS ALSO GRABBING
THE EXPORTED 'ls=() { ... ; }' FUNCTION!!!

Adding the following code to my .emacs file fixes the problem:

(let ((lenv process-environment)
      (goodenv))
  (while lenv
    (if (string-match "^\\([a-z][a-z0-9_]*\\)=()" (car lenv))
        (message "removing exported bash function '%s' from the emacs
environment" (match-string 1 (car lenv)))
      (setq goodenv (cons (car lenv) goodenv))
      )
    (setq lenv (cdr lenv))
    )
  (setq process-environment goodenv)
  )

If this behavior is ok, then please cancel my previous problem report.
Else, if this is a NEW problem ... would someone please record it?

Thank you!



Recent input:
r k M-q M-} M-} M-} M-Q M-} M-Q M-{ M-{ M-{ M-{ M-Q 
C-c C-c q return M-> C-p return C-x o C-v C-v C-v C-v 
C-v C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n M-0 C-l C-SPC C-SPC C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
M-w M-x r e p o r tab return

Recent messages:
Sending...done
 [2 times]
Expiring articles...
Expiring articles...done
No more unread newsgroups
Retrieving newsgroup: nnml:mail.misc...
Fetching headers for nnml:mail.misc...
Fetching headers for nnml:mail.misc...done
Generating summary...
Generating summary...done

-- 
Daniel Ortmann       IBM Circuit Technology
2414 30 av NW, #D    E315, bldg 040-2
Rochester, MN 55901  3605 Hwy 52 N
507.288.7732 (h)     507.253.6795 (w)
address@hidden      address@hidden

"The answers are so simple and we all know where to look,
but it's easier just to avoid the question." -- Kansas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]