🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Elliott Fri, 20 Oct 1989 15:09
Echo and arguments that begin with "-"
#673
Author: David Elliott
Date: Fri, 20 Oct 1989 15:09
23 lines
976 bytes
Here's an interesting problem.  In bash, the echo command can take the
options -n and -e.

We are using bash with the C news inews program (our standard sh is
broken and we aren't ready to upgrade to a new release), and inews
wants to do an

	echo "-- "

Bash's echo sees this and gives an invalid flag message.

In this case, I simply changed the line to

	echo "BB " | tr B -

but it seems reasonable to me that there should be a way to say
"There are no more options; process the rest of the line as it
is".

-- 
David Elliott
dce@sony.com | ...!{uunet,mips}!sonyusa!dce
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads