Commit Graph

36 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand 487bcca4e2 Use strcspn to remove \n from fgets result. Prompted by change by Ray
Lai of OpenBSD via Björn Sandell.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:36:36 +00:00
Love Hörnquist Åstrand 2ed207c05b (print_sl): remove unused function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-19 12:10:54 +00:00
Love Hörnquist Åstrand 5ff64b4da8 (sl_slc_help): remove return
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17952 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-30 11:34:32 +00:00
Love Hörnquist Åstrand e6d68876f5 Add sl_slc_help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-28 14:16:43 +00:00
Love Hörnquist Åstrand 6ba480d200 use rk_UNCONST to un-constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15428 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 19:23:03 +00:00
Love Hörnquist Åstrand 1977d8cc33 (sl_command_loop): new return code -2 for EOF
(sl_loop): treat all return value from sl_command_loop >= 0 as ok, and
continue.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-09 15:31:43 +00:00
Johan Danielsson cf2f829e7e export sl_match
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13968 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-21 19:08:13 +00:00
Assar Westerlund 67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Johan Danielsson 3a85c36b4d (sl_command_loop): try to handle user pressing C-c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9499 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-26 14:58:26 +00:00
Assar Westerlund 3039b2d807 declare attributes of print_sl first, needed be some old versions of gcc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 05:13:47 +00:00
Assar Westerlund fbde3d5fd2 mandoc-generation
(sl_apropos): stolen from arla


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-07 21:49:56 +00:00
Johan Danielsson 3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund fafad0688f (sl_command_loop): remove unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5230 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 09:47:49 +00:00
Johan Danielsson a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Assar Westerlund 82ec807191 s/2/1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4691 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-28 10:38:56 +00:00
Johan Danielsson 5efdfea618 (sl_loop): check that there is at least one argument before calling
sl_command


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4612 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-20 23:46:46 +00:00
Johan Danielsson ce3a350343 (sl_loop): Fix general broken-ness.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4511 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 04:55:19 +00:00
Johan Danielsson 6c7a2f0901 Cleanup printing of help strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4506 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 04:14:33 +00:00
Assar Westerlund 2138c1d014 (sl_loop): got rid of a warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4449 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-21 15:26:26 +00:00
Johan Danielsson 351afe16c3 Use fprintf instead of warnx.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4403 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-15 04:19:25 +00:00
Johan Danielsson c7268ff433 Move command line split to function `sl_make_argv'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4396 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-15 04:12:05 +00:00
Assar Westerlund 9b80ffd367 (sl_help): actually use the help' field of SL_cmd'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3635 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-19 23:12:40 +00:00
Johan Danielsson 353e922dbc sl_command
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3011 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 21:39:59 +00:00
Assar Westerlund 4381cacb0e let each sl_func return an int indicate if sl_loop should return or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2428 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-18 01:04:57 +00:00
Assar Westerlund 49e6c777dd Initialize the `lasts' to NULL before calling strtok_r the first time.
With our strtok_r it's not necessary, but the man-page on SGIs says it
should be done.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1791 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 03:15:07 +00:00
Assar Westerlund 72212eb758 (sl_match): initialize `partial_cmd'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1557 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-11 14:30:22 +00:00
Johan Danielsson e1282e7dfc Update copyright strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Assar Westerlund 5069362b4a stupid type change
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1487 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-23 05:09:06 +00:00
Johan Danielsson b36f1cf6d6 Add prototypes for readline and add_history.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-20 19:32:57 +00:00
Björn Groenvall e60914acca Made things compile under SunOS4 again.
Fix lots of warnings under SunOS4.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1201 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-27 14:08:08 +00:00
Assar Westerlund 868f583bbc removed unused variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1197 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-26 20:33:24 +00:00
Assar Westerlund 9bae6325d3 Nicer help output.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1067 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-23 18:29:23 +00:00
Assar Westerlund 57644d9c33 Allow unlimited number of arguments.
Use `strtok_r' to divide up string into arguments.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1049 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-19 03:57:59 +00:00
Assar Westerlund d92314772e Let `readline' to the \n-removal.
Handle empty lines.
Don't store empty lines in the history.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1045 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-18 23:45:33 +00:00
Johan Danielsson 0d06afde69 Use readline compatible i/o.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1044 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-18 20:36:51 +00:00
Assar Westerlund 70bb7de493 new directory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1040 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 23:48:51 +00:00