lostd
|
9a14dcd8d2
|
Revert "No need to manually strip trailing slashes"
This reverts commit abd301333d .
|
10 years ago |
lostd
|
70d292ed24
|
We don't use realpath(3) anymore
|
10 years ago |
lostd
|
24567ce6f5
|
Get rid of the LIFO history, an oldpath is enough
|
10 years ago |
lostd
|
4b1b156a3b
|
If you call makepath() with an absolute name it returns a copy of it
|
10 years ago |
lostd
|
9407399230
|
Don't attempt to go back if on the relative root
|
10 years ago |
lostd
|
8d4019f3aa
|
Only use chdir(3) just before spawning a shell
|
10 years ago |
lostd
|
a606073296
|
Try to open file to see access errors on the status bar
|
10 years ago |
lostd
|
d84c3b1079
|
Only free history path if it is valid
|
10 years ago |
lostd
|
aa555a3b35
|
Keep history based on paths instead of positions
|
10 years ago |
sin
|
8d018e620f
|
realloc() behaves like free() if size is 0
|
10 years ago |
sin
|
11ca2b408d
|
Some systems define this already.
|
10 years ago |
sin
|
1c467fce7a
|
Style fix
|
10 years ago |
sin
|
0e214e23b7
|
Call dentfree() when we quit
|
10 years ago |
sin
|
789f9336f4
|
Rename testopendir() to canopendir()
|
10 years ago |
sin
|
48f9c5a79d
|
Test if we can back out/enter directories
|
10 years ago |
sin
|
aedec0ddf3
|
Add pushhist(), pophist() and forgethist()
|
10 years ago |
sin
|
1183a9428f
|
Save one level of indentation
|
10 years ago |
sin
|
b39da16920
|
Vertical spacing fixes
|
10 years ago |
sin
|
bc69021233
|
Save one level of indentation
|
10 years ago |
sin
|
05957936f5
|
Use fstatat() wherever possible
|
10 years ago |
sin
|
b06a4d4eeb
|
Initialize `n' and `dents'
|
10 years ago |
sin
|
ce599b8e6b
|
Check getch() against ERR
|
10 years ago |
sin
|
c6614067e4
|
Remember to set dents to NULL
|
10 years ago |
sin
|
dbac1486c6
|
Include sys/wait.h for waitpid()
|
10 years ago |
sin
|
ce1fcfc7b8
|
Remove unused vars
|
10 years ago |
sin
|
32bce991be
|
Add dentfill() and dentfree()
|
10 years ago |
lostd
|
5335be5832
|
Functions for setting and clearing the prompt
|
10 years ago |
lostd
|
0809871aeb
|
Free tmp string if dirname fails
|
10 years ago |
sin
|
9bc4b92474
|
No need for a temporary buffer
xdirname() uses xstrdup() internally so we are safe to use that
pointer directly.
|
10 years ago |
sin
|
35f3b250bb
|
Only free() after xstrdup()
|
10 years ago |
lostd
|
36cf4136b5
|
Add xdirname() again and give dirname(3) another chance
|
10 years ago |
sin
|
577e0284a1
|
Remove xdirname()
dirname(3) should be shot to death.
|
10 years ago |
sin
|
ef7082b691
|
Use stat() instead of open() + fstat()
|
10 years ago |
lostd
|
5aceade801
|
Forget all history on manual dir change
|
10 years ago |
sin
|
75143cd93e
|
Add xdirname() to avoid quirks with dirname(3)
|
10 years ago |
sin
|
abd301333d
|
No need to manually strip trailing slashes
We use realpath() now.
|
10 years ago |
sin
|
9d25101ad9
|
Add xstrdup() and xrealpath()
|
10 years ago |
sin
|
7d4d60e778
|
Add xmalloc() + xrealloc()
|
10 years ago |
sin
|
8326a75762
|
printerr() should print to stderr
|
10 years ago |
sin
|
12106af2a7
|
Update outdated comment
|
10 years ago |
sin
|
3808dde641
|
Always use realpath() and properly chdir() so relative changes via 'c' work
|
10 years ago |
sin
|
56252bdf98
|
Add '*' suffix to executables
|
10 years ago |
sin
|
cfd530b167
|
Fix segfault in readln()
This could be reproduced simply by doing: [TAB] and backspacing
a few times.
|
10 years ago |
sin
|
330adc995f
|
No need to strdup()
|
10 years ago |
sin
|
61bc5cd817
|
Add 'c' command to change into a destination directory by typing the path
|
10 years ago |
sin
|
58f897fead
|
Add missing break
|
10 years ago |
sin
|
65b8aa2ab0
|
Add SEL_SH and bring out spawning of the shell in the main loop
|
10 years ago |
sin
|
d53e604cc2
|
Add '!' command to spawn a shell in cwd
|
10 years ago |
sin
|
3bc66a43a7
|
Show hidden files if run as root
|
10 years ago |
sin
|
65a01f9636
|
Include util.h and remove ifdef for Linux
|
10 years ago |