File: shell.htb

package info (click to toggle)
httest 2.4.23-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,876 kB
  • sloc: ansic: 19,553; sh: 10,550; xml: 1,047; makefile: 510; lisp: 145; perl: 31
file content (29 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
BLOCK setShellCommandVars

_SET CAT=type
_SET RM=del
_SET LS=dir
_SET CP=copy

_DEBUG $USER
_DEBUG $TERM

_IF "$USER" MATCH ".USER"
  # not a unix, assume is windows
  _SET DEV_NULL=nul
_ELSE
  _SET CAT=cat
  _SET RM=rm
  _SET LS=ls
  _SET CP=cp
  
  _IF "$TERM" EQUAL "cygwin"
    # cygwin: _EXEC has normal DOS shell, but normal unix
    # shell commands are also in path, but > is DOS shell!
	_SET DEV_NULL=nul
  _ELSE
    # some unix
    _SET DEV_NULL=/dev/null
  _END IF
_END IF
END