Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "set -o foo" does not fail / does not abort the shell



On Dec 11,  1:56pm, Peter Stephenson wrote:
}
} Vincent Lefevre wrote:
} > I've tried the following with zsh-4.3.4-dev-4:
} > 
} > $ Src/zsh -f -c 'emulate sh; set -o foo; echo "Didn''t abort ($?)"'
} > set: no such option: foo
} > Didn't abort (0)
} > 
} > This is incorrect. The shell should abort as 'set' is a special
} > builtin[*]:
} 
} This is easy.

I'm left wondering if this shouldn't be a POSIX-mode thing, i.e. whether
zsh in "native mode" should continue as it has.



Messages sorted by: Reverse Date, Date, Thread, Author