This is a pretty small 'project', it's just something that kept me
busy one evening, but anyway this group needs the traffic.
-=- browsecal.sh -=-
This is a wrapper for the common UNIX cal program, allowing
the calendar to be browsed interactively using the arrow keys.
gopher://aussies.space:70/1/%7efreet/scripts
On 2020-09-06, The Free Thinker <freet@aussies.space> wrote:
This is a pretty small 'project', it's just something that kept me
busy one evening, but anyway this group needs the traffic.
-=- browsecal.sh -=-
This is a wrapper for the common UNIX cal program, allowing
the calendar to be browsed interactively using the arrow keys.
gopher://aussies.space:70/1/%7efreet/scripts
I changed the #! line to /usr/bin/env bash and formatted it for unix
line endings
and it works great! What a handy little tool. Thanks for sharing.
James Tomasino <tomasino@cosmic.voyage> wrote:
On 2020-09-06, The Free Thinker <freet@aussies.space> wrote:
I changed the #! line to /usr/bin/env bash and formatted it for unix
line endings
Hmm, must be your Gopher client outputting non-UNIX line endings, it
doesn't need conversion after downloading with the UMN Gopher client.
This is a pretty small 'project', it's just something that kept me
busy one evening, but anyway this group needs the traffic.
-=- browsecal.sh -=-
This is a wrapper for the common UNIX cal program, allowing
the calendar to be browsed interactively using the arrow keys.
gopher://aussies.space:70/1/%7efreet/scripts
On 2020-09-06, The Free Thinker <freet@aussies.space> wrote:
-=- browsecal.sh -=-
This is a wrapper for the common UNIX cal program, allowing
the calendar to be browsed interactively using the arrow keys.
gopher://aussies.space:70/1/%7efreet/scripts
After fixing new-lines (sed -i s/.$//)
I've tried it under openbsd (bash
5.0.17) but it cannot work, as the `cal` binary seems not to support the `Y` option:
cal: unknown option -- Y
usage: cal [-jmwy] [month] [year]
Dacav Doe <dacav@tilde.institute> wrote:
On 2020-09-06, The Free Thinker <freet@aussies.space> wrote:
gopher://aussies.space:70/1/%7efreet/scripts
After fixing new-lines (sed -i s/.$//)
I'm not sure of the solution to this. I think Gophernicus converts
all text to DOS-style newlines, probably because the Gopher standard
says that gophermaps should use them.
But I haven't got around to looking up the gopher commands and trying
in telnet to make 100% sure that it's not curl doing the conversion
(and that the UMN Gopher client is doing its own conversion back
again for me).
The Free Thinker <freet@aussies.space> wrote:
Dacav Doe <dacav@tilde.institute> wrote:
On 2020-09-06, The Free Thinker <freet@aussies.space> wrote:
gopher://aussies.space:70/1/%7efreet/scripts
After fixing new-lines (sed -i s/.$//)
I'm not sure of the solution to this. I think Gophernicus converts
all text to DOS-style newlines, probably because the Gopher standard
says that gophermaps should use them.
But I haven't got around to looking up the gopher commands and trying
in telnet to make 100% sure that it's not curl doing the conversion
(and that the UMN Gopher client is doing its own conversion back
again for me).
Actually, I just tried:
gopher gopher://aussies.space:70/9/%7efreet/scripts/browsecal.sh
And it downloads with the DOS newlines, so it must be Gophernicus
adding them. The next question is whether that's a bug, or a
characteristic of Gopher, and clients should do the conversion back
again like the UMN Gopher client does when saving?
Some clients might not be able to cope with UNIX newlines.
I guess Gophernicus shouldn't be doing the conversion for type 9
(binary) downloads though. Otherwise I could have type 0 view links,
and type 9 download links, for each script.
This is a pretty small 'project', it's just something that kept me
busy one evening, but anyway this group needs the traffic.
-=- browsecal.sh -=-
This is a wrapper for the common UNIX cal program, allowing
the calendar to be browsed interactively using the arrow keys.
gopher://aussies.space:70/1/%7efreet/scripts
Sysop: | deepend |
---|---|
Location: | Calgary, Alberta |
Users: | 255 |
Nodes: | 10 (0 / 10) |
Uptime: | 127:25:28 |
Calls: | 1,718 |
Calls today: | 2 |
Files: | 4,099 |
D/L today: |
2 files (2,312K bytes) |
Messages: | 392,095 |