Jamin W. Collins [EMAIL PROTECTED] wrote:
Here's an update to the previous script based on the feedback received.
I've attempted to make the script somewhat more shell neutral.
Just to be a pain in the ass:
#!/bin/ash
(jschauma@becasse) [jschauma]$ ls -la /bin/ash
ls: /bin/ash: No such
On Tue, 26 Feb 2002 13:09:30 -0800 (PST)
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
CRAP! =(
I'll change that to #!/bin/sh, unless someone has a problem with
that.
I would prefer #!/bin/luxury_yacht
its pronounced Bourne compatible shell though.
Is that licensed under
Is that licensed under the GPL or some other Open Source friendly
license? I'm sure there are a few that would prefer it.
it is licensed under the free for commercial use only license.
Jan Schaumann wrote:
Jamin W. Collins [EMAIL PROTECTED] wrote:
Just to be a pain in the ass:
#!/bin/ash
What's wrong with plain ole /bin/sh - you can be pretty darn certain
that /bin/sh exists on any *nix...
-Jan
I think '/bin/sh' is a better choice also.
On my system, 'ash' doesn't
I think '/bin/sh' is a better choice also.
On my system, 'ash' doesn't understand ~, so the
last line of bbsession mv $TEMPFILE ~/.bbsession
fails with No such file or directory
yep '~' is a GNU ism (-: Use $HOME, it *SHOULD* be safe enough.
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
yep '~' is a GNU ism (-:
It is?
(jschauma@becasse) [jschauma]$ cat /tmp/foo.sh
#!/bin/sh
ls -la ~/
(jschauma@becasse) [jschauma]$ /tmp/foo.sh
[listing of my $HOME snipped]
(jschauma@becasse) [jschauma]$
I guess NetBSD implemented this as well.
On Tue, 26 Feb 2002 17:14:27 -0500
Jan Schaumann [EMAIL PROTECTED] wrote:
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
yep '~' is a GNU ism (-:
It is?
(snip)
I guess NetBSD implemented this as well. From expand.c in
(snip)
So ~ is not functional in the original Bourne Shell?
Gotcha.
On 26-Feb-2002 Jan Schaumann wrote:
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
yep '~' is a GNU ism (-:
It is?
So ~ is not functional in the original Bourne Shell?
Get someone to try it on a Sun with a real /bin/sh. My experience has been
it only worked under glibc based
Get someone to try it on a Sun with a real /bin/sh.
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
bash-2.03$ /bin/sh
$ ls ~
~: No such file or directory
$ echo $HOME
/home/cthrall
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
On 26-Feb-2002 Jan Schaumann wrote:
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
yep '~' is a GNU ism (-:
So ~ is not functional in the original Bourne Shell?
Get someone to try it on a Sun with a real /bin/sh.
(jschauma@heineken)
Hey,
Here's an update to the previous script based on the feedback
received. I've attempted to make the script somewhat more shell
neutral.
thanks a lot, runs very nice now :)
Please let me know of any problems you encounter.
just one little thing i doesn't really care about but could
On Tue, 26 Feb 2002, Craig Thrall wrote:
Date: Tue, 26 Feb 2002 15:20:45 -0700
From: Craig Thrall [EMAIL PROTECTED]
To: 'Sean 'Shaleh' Perry' [EMAIL PROTECTED],
blackbox [EMAIL PROTECTED]
Subject: RE: bbsession script v0.02
Get someone to try it on a Sun with a real /bin/sh.
Sun
Circa 2002-Feb-26 17:14:27 -0500 dixit Jan Schaumann:
: Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote:
: yep '~' is a GNU ism (-:
:
: It is?
No, it isn't. It first appeared in the C-shell, and soon after that in
the Korn shell. Subsequent shells (including GNU Bash) got it from one
of those
13 matches
Mail list logo