github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jneitzel / v6shell

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Wiki (4)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (15)
    • master ✓
    • osh-20070321
    • osh-20070324
    • osh-20070707
    • osh-20080109
    • osh-20080629
    • osh-20081026
    • osh-20081122
    • osh-20081213
    • osh-20090527
    • osh-20091029
    • osh-20091122
    • osh-20091127
    • osh-20091218
    • osh-20100228
  • Switch Tags (14)
    • release.osh-20100228
    • release.osh-20091218
    • release.osh-20091127
    • release.osh-20091122
    • release.osh-20091029
    • osh-20090527
    • osh-20081213
    • osh-20081122
    • osh-20081026
    • osh-20080629
    • osh-20080109
    • osh-20070707
    • osh-20070324
    • osh-20070321
  • Branch List
Sending Request…

V6 Thompson Shell Port — Read more

  Cancel

http://v6shell.org/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Change date in [A-Z][A-Z]* & examples/[A-Z][A-Z]* doc files. 
jneitzel (author)
Sun Feb 28 13:04:25 -0800 2010
commit  06014f3a29d8ab118e88dc95b699b2e595130294
tree    c2e0c0739a93d135fe30dc9ffc539e772f2ced64
parent  b9fc17eb7694ed4bda6209189b682070a7e7dd28
v6shell / examples / dot.osh.logout examples/dot.osh.logout
100644 37 lines (28 sloc) 0.971 kb
edit raw blame history
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
30
31
32
33
34
35
36
37
: $h/.osh.logout - " Modify to taste. "
:
: " @(#)$Id$ "
:
: " The author of this file, J.A. Neitzel <jan (at) v6shell (dot) org>, "
: " hereby grants it to the public domain. "
:
: " From: http://v6shell.org/rc_files "
:
 
sigign + 2 3
 
: fd2 -e echo "debug: Executing `"$h/.osh.logout"' now..."
 
:
: " Check for OSHDIR ($d), and remove it before logout. "
:
if X$d = X -o ! -d $d'' goto Logout
 
chdir ; rm -r $d ; chdir -
: fallthrough
 
: Logout - " Log out or start new login shell according to user response. "
 
chdir ; fd2 -e echo
fd2 -e echo -n 'Do you want to log out now? ([y]/n) '
head -1 <- | tr -d ' \t' >osh-logout-$$
 
if ! -s osh-logout-$$ -o \
{ egrep '^$|^[Yy][A-Za-z]*$' osh-logout-$$ >/dev/null } \
if { rm -f osh-logout-$$ } exit
if ! { which osh >/dev/null } \
if { rm -f osh-logout-$$ } if { exit } sleep 5
 
rm -f osh-logout-$$ ; unsetenv TTY ; chdir -
clear <- ; sigign - 2 3 ; exec osh -login <-
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server