zsh-2.2:src/glob.c - important fix

zsh-2.2:src/glob.c - important fix

Post by Marc Bouch » Sat, 20 Jun 1992 01:31:16




Quote:>Hi!
>I just inserted the fix, and I see no change ?
>(well, may be I did not crate the correct testing
>environment?)
>How to test that bug ?
>My freshly compiled ZSh reacts strangely if I hit ^C !
>it always says 'zsh: command not found: 1'
>In our /etc/profile is set (comming from /bin/sh)
>trap '' 1 2 3 15
>and later at the end of it is done
>trap 1 2 3 15
>setting the traps to theit default functions.
>BUT the zsh gets it as "set command '1' to be done in case
>of interrupt '2'" So the zsh does NOT work with a default
>/bin/sh script, and so is not usable as a login-shell !!!
>Question: 'bug, or feature' ???
>Stucki

Not a bug, just a difference in the trap command wrt /bin/sh..

Simply change the latter "trap 1 2 3 15" to a block like:

if [ "$RANDOM" != "$RANDOM" ]; then
        trap - 1 2 3    # ksh, zsh
else                              
        trap 1 2 3      # sh      
fi



/-----_--  -    ----_|| +1 514 466 8932 - &-

 
 
 

1. zsh: Can I set no-case glob?

Hello,

Can I make zsh to do case-insensitive globbing, so that
ls *.exp  ==  ls *.[eE][xX][pP]  [== ls (#i)*.exp]?
In another words, can I have (#i) modifier turned on
by default?

I am running zsh under Cygwin and Windows XP, so the
file names are not case-sensitive.

Thank you,

        Pavol

2. Solaris 2.2 install

3. ISO: csh glob to ksh93 glob idea

4. NIS Problems

5. Duelling shells (Re: shell architecture (to glob or not to glob))

6. 11/41 sound/oss/pas2_pcm.c - convert cli to spinlocks

7. Question: How important is /usr/src/linux ?

8. OpenBSD Firewall with 3 ethernet cards

9. gmod 1.2a released (important fix!)

10. Entropy fixes - xfer cleanup *important*

11. Specialix SIO/XIO driver 0.8.1 - important bug fix

12. Important per-cpu fix.

13. making from src - /usr/src/lib/csu/i386