mpf
0b3d8e1fc4
Remove default ls -C alias.
OK millert@, kn@, ian@, sthen@
6 years ago
kn
775ea3cbc9
zap *_path() functions
These PATH helpers failed to quote their input properly leading to shell
code execution. Noone noticed since import (over 21 years ago), so wipe it.
OK tb rpe
6 years ago
rpe
7f40093642
Remove the ':' at the beginning of ksh.kshrc.
prodded by Raf Czlonka
OK tb@
7 years ago
tb
1decb82f6e
Replace ps | grep with pgrep and use && instead of if-then-fi.
From Raf Czlonka.
ok halex
7 years ago
tb
c29a36dba0
Replace some `eval` with $(eval) for consistency and use
parameter expansion instead of basename(1). From Raf Czlonka
ok rpe
7 years ago
rpe
3a5d0b50bb
Do the same with less code.
OK halex
8 years ago
rpe
a730e307f5
Unbreak ksh.kshrc by using a MI way of finding out the console device name.
Found by landry
OK deraadt
8 years ago
rpe
28d5c57ffe
Simplify setting the USER and UID variables.
While here, convert `` to $().
OK halex
8 years ago
rpe
f9cc010b3f
Remove remnants of rlogin, it's long gone (2002).
OK halex
8 years ago
rpe
bd8116bbf7
Identation
OK halex, krw
8 years ago
rpe
0ba52eeb8e
Convert [] to ksh style [[]] tests.
Based on a diff from Anthony Coulter.
OK krw, halex
8 years ago
rpe
f4cb393ab1
Resurrect the detection of the console device that got lost a long time ago.
OK tb
8 years ago
rpe
0e969b9afd
Remove old cruft, that make no sense at all on OpenBSD.
- comments relevant to other brands of UNIX
- the no-op KSH_VERSION case-block, we only have pdksh
- the case-block for setting aliases based on UNIX brand
together with a comment that falsely encourages to modify this
file instead of putting stuff in $HOME/.kshrc
OK krw@ halex@
9 years ago
halex
4b8a062fa4
Introducing a nifty _ignore function makes the file neater and easier
to maintain. The eval's must stay to make the aliases expand at run
time instead of at parse time.
ok krw@
10 years ago
halex
0bc02fc15f
revert last commit
eval seems to be needed for reaching the aliases which otherwise aren't
available from within functions...
10 years ago
halex
ebec654dde
I hate eval. Apart from when it's really needed.
Eval'ing constant expressions is not such a case.
"...fine with me" krw@
10 years ago
halex
557825f651
use "function X" rather than "X ()" since for the former, preceding parameter
assignments function calls are not surprisingly polluting your shell environment
"makes sense" krw@, ok tedu@ guenther@
13 years ago
otto
8378994e98
don't throw away exit status of various commands; ok sthen@ dcoppa@ halex@
14 years ago
martynas
f4f95da364
fix ksh ftp wrapper so argvs aren't split before passing; making
urls with spaces work. ok sthen@
15 years ago
jmc
16e5222589
remove the ls=ls -gCF alias: we already have an alias for ls (-CF),
and now that the behaviour of -g has changed to be more in line
with posix, we get group ID by default anyway;
kick started by PR 5784 from Jacek Masiulaniec;
discussed with otto and sobrado;
ok deraadt millert
16 years ago
david
2fc21edae2
indentation whitespace nits
20 years ago
marc
7ad26b539b
Remove special case code for sun/xterm that faked a DISPLAY and
22 years ago
todd
03c100e65d
when using this file, label and ilabel set the term 'title' and icon labels.
they do this by sending to stdout. commands like: 'ftp -o - ftp://blah/foo>foo'
do not like having data added to the output stream.
since we only define these two functions in an environment where /dev/tty
exists, send output to /dev/tty to make sure it does not corrupt the output
stream of commands.
22 years ago
deraadt
950d3e558c
space nits
22 years ago
deraadt
d8ad086ce4
zap trailing spaces and tabs
23 years ago
marc
393e4823a7
fix function wcd so "cd x && y" returns an appropriate error when x does not exist
23 years ago
todd
426984c2e9
add ssh to the list of apps to 'cleanup titles afterwards' when used with an
xterm or equivalent
24 years ago
millert
042b0288fa
Don't bind arrow keys in pdksh, the binding are already there by default.
25 years ago
millert
a291f3eb91
Fix cd/wcd aliases. Closes PR #981
25 years ago
marc
0b582277ad
fix ksh.kshrc; check ksh.kshrc, .kshrc for owner/mode/path
27 years ago
kstailey
33d89cb3fa
changed not to hardcode sun console name as "console"
28 years ago
downsj
5a37a59fda
Add /etc/ksh.kshrc.
28 years ago