* Re: Cygwin New User Issue? [not found] <1B213508-B026-4632-8A06-B1D5FB1E2586@gmail.com> @ 2009-08-17 11:11 ` Peter Stephenson 2009-08-19 1:03 ` Aaron Davies 0 siblings, 1 reply; 3+ messages in thread From: Peter Stephenson @ 2009-08-17 11:11 UTC (permalink / raw) To: Zsh Hackers' List; +Cc: Aaron Davies On Tue, 11 Aug 2009 10:20:15 +0800 Aaron Davies <aaron.davies@gmail.com> wrote: > Running zsh for the first time on a new install of cygwin, I noticed > the following error during the zsh-newuser-install process (retyped, > not pasted, so any typos are mine): > > __zni_apply_defaults:99: command not found: parsed_keymaps[main] The script's obviously wrong--thanks for noticing. This stuff is less frequently used than some of the other parts. Index: Functions/Newuser/zsh-newuser-install =================================================================== RCS file: /cvsroot/zsh/zsh/Functions/Newuser/zsh-newuser-install,v retrieving revision 1.6 diff -u -r1.6 zsh-newuser-install --- Functions/Newuser/zsh-newuser-install 18 Jul 2008 11:50:35 -0000 1.6 +++ Functions/Newuser/zsh-newuser-install 17 Aug 2009 10:55:43 -0000 @@ -348,7 +348,7 @@ (-B) shift if [[ -z $state_keymaps[main] ]]; then - parsed_keymaps[main] = $1 + parsed_keymaps[main]=$1 if [[ $1 = none ]]; then state_keymaps[main]="no value set" else -- Peter Stephenson <pws@csr.com> Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK 'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom' ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cygwin New User Issue? 2009-08-17 11:11 ` Cygwin New User Issue? Peter Stephenson @ 2009-08-19 1:03 ` Aaron Davies 2009-08-21 14:26 ` Peter Stephenson 0 siblings, 1 reply; 3+ messages in thread From: Aaron Davies @ 2009-08-19 1:03 UTC (permalink / raw) To: Peter Stephenson; +Cc: Zsh Hackers' List Specific to cygwin, I should also note that the default install has no "clear" command included (they've packaged that with ncurses), so zsh- newuser-install also throws several "command not found: clear" errors. Sent from my iPhone On Aug 17, 2009, at 7:11 PM, Peter Stephenson <pws@csr.com> wrote: > On Tue, 11 Aug 2009 10:20:15 +0800 > Aaron Davies <aaron.davies@gmail.com> wrote: >> Running zsh for the first time on a new install of cygwin, I noticed >> the following error during the zsh-newuser-install process (retyped, >> not pasted, so any typos are mine): >> >> __zni_apply_defaults:99: command not found: parsed_keymaps[main] > > The script's obviously wrong--thanks for noticing. This stuff is less > frequently used than some of the other parts. > > Index: Functions/Newuser/zsh-newuser-install > =================================================================== > RCS file: /cvsroot/zsh/zsh/Functions/Newuser/zsh-newuser-install,v > retrieving revision 1.6 > diff -u -r1.6 zsh-newuser-install > --- Functions/Newuser/zsh-newuser-install 18 Jul 2008 11:50:35 -0000 1.6 > +++ Functions/Newuser/zsh-newuser-install 17 Aug 2009 10:55:43 > -0000 > @@ -348,7 +348,7 @@ > (-B) > shift > if [[ -z $state_keymaps[main] ]]; then > - parsed_keymaps[main] = $1 > + parsed_keymaps[main]=$1 > if [[ $1 = none ]]; then > state_keymaps[main]="no value set" > else > > > -- > Peter Stephenson <pws@csr.com> Software Engineer > Tel: +44 (0)1223 692070 Cambridge Silicon Radio > Limited > Churchill House, Cambridge Business Park, Cowley Road, Cambridge, > CB4 0WZ, UK > > > 'member of the CSR plc group of companies. CSR plc registered in > England and Wales, registered number 4187346, registered office > Churchill House, Cambridge Business Park, Cowley Road, Cambridge, > CB4 0WZ, United Kingdom' ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cygwin New User Issue? 2009-08-19 1:03 ` Aaron Davies @ 2009-08-21 14:26 ` Peter Stephenson 0 siblings, 0 replies; 3+ messages in thread From: Peter Stephenson @ 2009-08-21 14:26 UTC (permalink / raw) To: Zsh Hackers' List On Wed, 19 Aug 2009 09:03:26 +0800 Aaron Davies <aaron.davies@gmail.com> wrote: > Specific to cygwin, I should also note that the default install has no > "clear" command included (they've packaged that with ncurses), so zsh- > newuser-install also throws several "command not found: clear" errors. This should cover most bases. Index: Functions/Newuser/zsh-newuser-install =================================================================== RCS file: /cvsroot/zsh/zsh/Functions/Newuser/zsh-newuser-install,v retrieving revision 1.7 diff -u -r1.7 zsh-newuser-install --- Functions/Newuser/zsh-newuser-install 17 Aug 2009 11:15:38 -0000 1.7 +++ Functions/Newuser/zsh-newuser-install 21 Aug 2009 14:25:18 -0000 @@ -19,6 +19,15 @@ return 1 fi +# clear is missing in some Cygwin configurations (lacking ncurses) +if ! ( clear >/dev/null 2>/dev/null ); then + if zmodload zsh/termcap 2>/dev/null; then + clear() { echotc cl; } + else + clear() { print -n "\e[H\e[J"; } + fi +fi + # The directory in which to look for and save .zshrc. local zd=${ZDOTDIR:-$HOME} # The same directory in a user friendly form, i.e. with ~ replacement. -- Peter Stephenson <pws@csr.com> Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK 'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom' ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-21 14:31 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <1B213508-B026-4632-8A06-B1D5FB1E2586@gmail.com> 2009-08-17 11:11 ` Cygwin New User Issue? Peter Stephenson 2009-08-19 1:03 ` Aaron Davies 2009-08-21 14:26 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).