OpenBSD CVS

CVS log for src/etc/ksh.kshrc


[BACK] Up to [local] / src / etc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Wed May 16 14:01:41 2018 UTC (6 years ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Remove default ls -C alias.

OK millert@, kn@, ian@, sthen@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Feb 18 21:48:00 2018 UTC (6 years, 2 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.30: +1 -24 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Sun Nov 5 10:58:39 2017 UTC (6 years, 6 months ago) by rpe
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

Remove the ':' at the beginning of ksh.kshrc.

prodded by Raf Czlonka
OK tb@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 2 10:19:06 2017 UTC (6 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.28: +2 -4 lines
Diff to previous 1.28 (colored)

Replace ps | grep with pgrep and use && instead of if-then-fi.
From Raf Czlonka.

ok halex

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jul 15 07:11:42 2017 UTC (6 years, 10 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.27: +7 -7 lines
Diff to previous 1.27 (colored)

Replace some `eval` with $(eval) for consistency and use
parameter expansion instead of basename(1). From Raf Czlonka

ok rpe

Revision 1.27 / (download) - annotate - [select for diffs], Wed Sep 14 18:34:51 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.26: +4 -6 lines
Diff to previous 1.26 (colored)

Do the same with less code.

OK halex

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 10 12:50:20 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Unbreak ksh.kshrc by using a MI way of finding out the console device name.

Found by landry
OK deraadt

Revision 1.25 / (download) - annotate - [select for diffs], Sat Sep 10 09:44:49 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
Changes since 1.24: +3 -4 lines
Diff to previous 1.24 (colored)

Simplify setting the USER and UID variables.
While here, convert `` to $().

OK halex

Revision 1.24 / (download) - annotate - [select for diffs], Sat Sep 10 08:42:06 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
Changes since 1.23: +1 -3 lines
Diff to previous 1.23 (colored)

Remove remnants of rlogin, it's long gone (2002).

OK halex

Revision 1.23 / (download) - annotate - [select for diffs], Sat Sep 10 08:00:12 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
Changes since 1.22: +10 -10 lines
Diff to previous 1.22 (colored)

Identation

OK halex, krw

Revision 1.22 / (download) - annotate - [select for diffs], Fri Sep 9 16:25:37 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

Convert [] to ksh style [[]] tests.
Based on a diff from Anthony Coulter.

OK krw, halex

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 9 16:11:12 2016 UTC (7 years, 8 months ago) by rpe
Branch: MAIN
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

Resurrect the detection of the console device that got lost a long time ago.

OK tb

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 18 08:39:32 2015 UTC (9 years, 3 months ago) by rpe
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.19: +4 -24 lines
Diff to previous 1.19 (colored)

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@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 11 21:12:39 2014 UTC (9 years, 10 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.18: +13 -39 lines
Diff to previous 1.18 (colored)

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@

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 11 16:41:16 2014 UTC (9 years, 10 months ago) by halex
Branch: MAIN
Changes since 1.17: +12 -12 lines
Diff to previous 1.17 (colored)

revert last commit

eval seems to be needed for reaching the aliases which otherwise aren't
available from within functions...

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 9 15:41:16 2014 UTC (9 years, 10 months ago) by halex
Branch: MAIN
Changes since 1.16: +13 -13 lines
Diff to previous 1.16 (colored)

I hate eval. Apart from when it's really needed.
Eval'ing constant expressions is not such a case.

"...fine with me" krw@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 4 19:52:37 2011 UTC (12 years, 10 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.15: +13 -13 lines
Diff to previous 1.15 (colored)

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@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 26 09:04:15 2010 UTC (14 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.14: +13 -1 lines
Diff to previous 1.14 (colored)

don't throw away exit status of various commands; ok sthen@ dcoppa@ halex@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 7 09:05:24 2009 UTC (14 years, 9 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

fix ksh ftp wrapper so argvs aren't split before passing;  making
urls with spaces work.  ok sthen@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 24 15:22:08 2008 UTC (15 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 7 06:08:10 2005 UTC (19 years, 3 months ago) by david
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.11: +8 -8 lines
Diff to previous 1.11 (colored)

indentation whitespace nits

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 8 22:40:45 2002 UTC (21 years, 5 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.10: +1 -25 lines
Diff to previous 1.10 (colored)


Remove special case code for sun/xterm that faked a DISPLAY and
set the erase character to something other than probably desired.
'I don't object' millert@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 16 15:39:10 2002 UTC (21 years, 7 months ago) by todd
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 30 06:44:07 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

space nits

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 19 03:03:33 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.7: +8 -8 lines
Diff to previous 1.7 (colored)

zap trailing spaces and tabs

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 30 18:24:21 2001 UTC (23 years ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

fix function wcd so "cd x && y" returns an appropriate error when x does not exist

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 21 17:24:41 2000 UTC (23 years, 8 months ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.5: +8 -1 lines
Diff to previous 1.5 (colored)

add ssh to the list of apps to 'cleanup titles afterwards' when used with an
xterm or equivalent

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 27 02:36:06 2000 UTC (24 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.4: +1 -11 lines
Diff to previous 1.4 (colored)

Don't bind arrow keys in pdksh, the binding are already there by default.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Nov 20 04:11:11 1999 UTC (24 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

Fix cd/wcd aliases.  Closes PR #981

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 22 03:39:10 1998 UTC (26 years, 2 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.2: +4 -5 lines
Diff to previous 1.2 (colored)

fix ksh.kshrc; check ksh.kshrc, .kshrc for owner/mode/path

Revision 1.2 / (download) - annotate - [select for diffs], Mon Dec 16 03:49:50 1996 UTC (27 years, 5 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.1: +5 -3 lines
Diff to previous 1.1 (colored)

changed not to hardcode sun console name as "console"

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 08:28:04 1996 UTC (27 years, 9 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0

Add /etc/ksh.kshrc.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.