JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for UK-NEXTSTEP-USERS Archives


UK-NEXTSTEP-USERS Archives

UK-NEXTSTEP-USERS Archives


UK-NEXTSTEP-USERS@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

UK-NEXTSTEP-USERS Home

UK-NEXTSTEP-USERS Home

UK-NEXTSTEP-USERS  2001

UK-NEXTSTEP-USERS 2001

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Assignment to a Key, Part II

From:

Chris Bidmead <[log in to unmask]>

Reply-To:

NeXT users discussion list: hardware,[NEXT|OPEN|GNU]STEP, Darwin/Mac OS X,WebObjects" <[log in to unmask]>

Date:

Fri, 23 Nov 2001 17:42:22 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (91 lines)

On Friday, November 23, 2001, at 04:59  pm, Ondra Cada wrote:
> Well, this can be sured by using
>
> % alias rewrap sed -e '...the well known stuff...'

I suppose what I'm saying here is that I see an alias as a sort of local
kluge that tailors your shell, whereas a standalone script is a tool that'
s independent of any particular environment.  There's something snide and
sneaky about the former, and something worthy and noble about the latter..
.  :-)

> I personally prefer having my sed scripts in text files, since they are
> more
> easily maintained. That is, of course, just a personal preference.

Me too, but more so. Rather than doing "sed -f <some script>"  I prefer a
single entity that does "sh script calling sed", which is what I use at
the moment.  But I was looking to take it further, and instead of having
to evoke the shell to evoke sed, just doing "sed -e <some script>" as an
executable.  Which you can do, but you can't start adding comments to it.
In awk you can do:

#!/usr/local/bin/awk -f

# lovely comments explaining what the script ought to do
# (even if it doesn't)

<bunch of awk code>

...and once you make that executable you have a nice piece of
self-contained programming that can travel all over the place and still
remain intact.

> I must say I don't know the details of interpretation #! in scripts that
> well. I guess the problem is that sed can't interpret a script if it goes
> in
> without -f; the idea might be _QUITE_ wrong though!!!!

In awk you do use -f (see above) but awk's intelligent enough to
understand this switch as introducing local code if its in a #! opening
line.

> CB> Does TextEdit recognise \n in Find?  I've never been able to do this.
>
> Well, not as "\n", but as either pasted value, or cmd-e-brought one
> (which I
> would use here), or Alt-Enter it always worked (even in Edit in those nice
> days so far ago ;)) and does still.

Alt-Enter works thus here too.  Many thanks for that tip.

> CB> I've found it easier just to clean out Classic and Windows... :-)
> Just
> CB> don't touch 'em, mate.
>
> I'd like to. So far though -- triple alas! -- Classic is the only way how
> to
> get Final Cut Pro and DVD Studio Pro, and windoze are the only way how to
> make and build applications for my Nokia 9210

Yup, it's darned applications that will always tie you down.  Why can't we
just have operating systems....  :-)


> (well, we got quite far with
> XSdk to do it in a decent environment, but the late Psion quit got us
> quite
> dry on funds, and that quitted XSdk as well).

I'm not sure Psion is altogether "late", is it?  But I know they've
retrenched.  Sorry you got bitten.

> At the very least I would _sometimes_ like to have one \n, _sometimes_ two
> of them between paragraphs.

As that's incredibly easy to fix I'd be inclined to leave it to an ad hoc
pipe of a \n\n para file whenever required.

> CB> (BTW, has anyone noticed the very peculiar ideas that Mail.app
> CB> seems to have about breaking lines?)
>
> Nope. I've tried the thing once or twice, and run away. Now I contentedly
> use my old good trusty NeXTStep 3.3 Mail ;)

Mac OS X's Mail.app has got tons better since 10.0, and has some nice GUI
features (for those that like that sort of thing, hurump!).  I was using
NeXTStep Mail.App for all my email until this Mac G4 arrived.

--
el bid

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
December 2022
February 2022
February 2021
January 2021
October 2020
August 2015
February 2015
June 2013
July 2012
May 2012
November 2011
October 2011
September 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
September 2010
June 2010
March 2010
February 2010
January 2010
November 2009
July 2009
March 2009
February 2009
January 2009
November 2008
June 2008
April 2008
March 2008
January 2008
December 2007
October 2007
July 2007
June 2007
April 2007
January 2007
December 2006
October 2006
September 2006
August 2006
July 2006
June 2006
April 2006
March 2006
February 2006
January 2006
November 2005
October 2005
June 2005
May 2005
March 2005
February 2005
January 2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager