-
as seen on Server Fault
- Search for 'Server Fault'
Hello.
I want to use home, end, delete, pageup, pagedown with ksh. My TERM is
xterm-color. These keys works fine with tcsh and zsh, but not with ksh
(print a tilda ~)
I found this:
bind '^[[3'=prefix-2
bind '^[[3~'=delete-char-forward
bind '^[[1'=prefix-2
bind '^[[1~'=beginning-of-line
bind '^[[4'=prefix-2
bind…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Why doesn't this work???
#!/bin/ksh
# array testfunc()
function testfunc {
typeset -A env
env=( one="motherload" )
print -r $env
return 0
}
testfunc # returns: ( one=motherload )
typeset -A testvar # segfaults on linux, memfaults on solaris
testvar=$(testfunc) # segfaults…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Ok, so I need to translate a script from a nice linux & bash configuration to ksh in hp-ux. Each and every command expects a different syntax and i want to kill myself. But let's skip the rant.
This is part of my script
anterior=`date +"%Y%0m" -d '1 month ago'`
I basically need to get a past…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How do I do the following conversion within a PERL script?
cd /usr/src/sys --- chdir '/usr/src/sys'
execute "chdir '/usr/src/sys' "
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Can anyone enlighten me why the following won't work?
$ groups
staff btgroup
$ ls -l
total 64
-rw-rw---- 1 sld248 btgroup 26840 Apr 02 13:39 padaddwip.jks
-rwxrwx--- 1 sld248 btgroup 1324 Apr 02 13:39 padaddwip.ksh
$ ./padaddwip.ksh
ksh: ./padaddwip.ksh: not found…
>>> More