Update of /cvsroot/winbash/winbash/examples
In directory usw-pr-cvs1:/tmp/cvs-serv381/examples
Modified Files:
alias-conv.sh suncmd.termcap
Log Message:
Fixed more cr/lf problems.
Index: alias-conv.sh
===================================================================
RCS file: /cvsroot/winbash/winbash/examples/alias-conv.sh,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- alias-conv.sh 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ alias-conv.sh 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,22 +1,22 @@
-#! /bin/sh
-#
-# Convert Csh aliases to Bash aliases. Adapted from a similar program
-# supplied with zsh.
-#
-# This is a quick script to convert csh aliases to Bash aliases/functions.
-# Pipe the output of csh's alias command through this; it will generate
-# a series of alias/function definitions on stdout, suitable for
-# processing by bash.
-#
-# This is not perfect, but it gets most common aliases; it should manage to
-# cut down a lot of the busy work.
-#
-sed -e 's/ (\(.*\))/ \1/' >/tmp/cz$$.1
-grep ! /tmp/cz$$.1 >/tmp/cz$$.2
-grep -v ! /tmp/cz$$.1 >/tmp/cz$$.3
-sed -e "s/'/'"\\\\"''"/g -e 's/^\([^ ]*\) \(.*\)$/alias \1='"'\2'/" \
- /tmp/cz$$.3
-sed -e 's/![:#]*/$/g' -e 's/^\([^ ]*\) \(.*\)$/\1 () { \2 }/' /tmp/cz$$.2
-rm /tmp/cz$$.?
-
-exit 0
+#! /bin/sh
+#
+# Convert Csh aliases to Bash aliases. Adapted from a similar program
+# supplied with zsh.
+#
+# This is a quick script to convert csh aliases to Bash aliases/functions.
+# Pipe the output of csh's alias command through this; it will generate
+# a series of alias/function definitions on stdout, suitable for
+# processing by bash.
+#
+# This is not perfect, but it gets most common aliases; it should manage to
+# cut down a lot of the busy work.
+#
+sed -e 's/ (\(.*\))/ \1/' >/tmp/cz$$.1
+grep ! /tmp/cz$$.1 >/tmp/cz$$.2
+grep -v ! /tmp/cz$$.1 >/tmp/cz$$.3
+sed -e "s/'/'"\\\\"''"/g -e 's/^\([^ ]*\) \(.*\)$/alias \1='"'\2'/" \
+ /tmp/cz$$.3
+sed -e 's/![:#]*/$/g' -e 's/^\([^ ]*\) \(.*\)$/\1 () { \2 }/' /tmp/cz$$.2
+rm /tmp/cz$$.?
+
+exit 0
Index: suncmd.termcap
===================================================================
RCS file: /cvsroot/winbash/winbash/examples/suncmd.termcap,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- suncmd.termcap 9 Mar 2002 03:39:13 -0000 1.1.1.1
+++ suncmd.termcap 9 Mar 2002 04:43:16 -0000 1.2
@@ -1,30 +1,30 @@
-#Posted-Date: Fri, 9 Mar 90 18:34:29 EST
-#Date: Fri, 9 Mar 90 18:34:29 EST
-#From: "Eirik Fuller" <wonton.tn.cornell.edu!eirik@ucsbcsl.UUCP>
-#To: bf...@ai... (Brian Fox)
-#Subject: Patch to bash 1.05 for SunView
-#
-#I think this works:
-#
-Mu|sun-cmd:am:bs:km:pt:li#34:co#80:cl=^L:ce=\E[K:cd=\E[J:rs=\E[s:
-#
-#Another alternative is to send the ti string at startup time (and, I
-#guess, the te string at exit time); that is how vi works in a cmdtool.
-#The best reason to not do this is that this also disables scrolling
-#which, as I understand it, is why anyone would use cmdtool in the
-#first place. Sending the ti string at startup time would do strange
-#things on other systems too; in xterm it would use the alternate
-#screen.
-#
-#The problem with cmdtool, in case that is less than obvious, is that
-#almost none of the capabilities advertised in /etc/termcap are enabled
-#while scrolling is enabled. It has other problems too, like being
-#part of an outdated proprietary windowing system, but there's probably
-#no need to dwell on that. In a sense, though, the sun-cmd termcap
-#entry doesn't lie about the capabilities; I think the termcap man page
-#does warn about some terminals having cursor motion capabilities only
-#in the "ti/te window".
-#
-#A general solution to this problem would require a termcap capability
-#which somehow tells which features are available outside of the ti/te
-#window. There is no such capability in termcap now, of course.
+#Posted-Date: Fri, 9 Mar 90 18:34:29 EST
+#Date: Fri, 9 Mar 90 18:34:29 EST
+#From: "Eirik Fuller" <wonton.tn.cornell.edu!eirik@ucsbcsl.UUCP>
+#To: bf...@ai... (Brian Fox)
+#Subject: Patch to bash 1.05 for SunView
+#
+#I think this works:
+#
+Mu|sun-cmd:am:bs:km:pt:li#34:co#80:cl=^L:ce=\E[K:cd=\E[J:rs=\E[s:
+#
+#Another alternative is to send the ti string at startup time (and, I
+#guess, the te string at exit time); that is how vi works in a cmdtool.
+#The best reason to not do this is that this also disables scrolling
+#which, as I understand it, is why anyone would use cmdtool in the
+#first place. Sending the ti string at startup time would do strange
+#things on other systems too; in xterm it would use the alternate
+#screen.
+#
+#The problem with cmdtool, in case that is less than obvious, is that
+#almost none of the capabilities advertised in /etc/termcap are enabled
+#while scrolling is enabled. It has other problems too, like being
+#part of an outdated proprietary windowing system, but there's probably
+#no need to dwell on that. In a sense, though, the sun-cmd termcap
+#entry doesn't lie about the capabilities; I think the termcap man page
+#does warn about some terminals having cursor motion capabilities only
+#in the "ti/te window".
+#
+#A general solution to this problem would require a termcap capability
+#which somehow tells which features are available outside of the ti/te
+#window. There is no such capability in termcap now, of course.
|