Hi amit14august...
You must be using a bash version 4.x.x as it cannot be used on anything previous.
On OSX 10.12.4, DEFAULT bash terminal below occurs...
So it is not backwards compatible.
To find your bash version:-
It is not easy to include users who do not have versions of languages that you write for and possibly unable to upgrade to. So be aware when you write your code to state which version of language you are using as that helps the user to decide whether or not to run your code.
We all learn the hard way.
Good luck and keep up with the programming learning curve.
We look forwards to seeing more from you...
Bazza.
This User Gave Thanks to wisecracker For This Post:
Hello everyone. I am new to these forums and also new to Unix. And by saying "new to Unix" I mean I have never used it and 10 minutes ago was asked to start learning. So here I am.
I was wondering if anyone could help me find out how long it would take to write code in Unix that will do the... (1 Reply)
Hi there..
I know this is a kind low question, but do anyone know where I can find some hints and or clues for the "adventure" game on UNIX ?
( /usr/games/adventure ).
I already searched on this forum but didnt find the answer to my question.
Thanks a lot.... (3 Replies)
Hi, there are some servers here at work which issue a Safeword challenge after I login. Can anyone tell me exactly how the challenge/response system works? In particular, how are the valid keys decided? (2 Replies)
I have the following text
Microsoft iSCSI Initiator version 2.0 Build 3497
Targets List:
iqn.2001-05.com.equallogic:0-8a0906-daef43402-138000002a4477ba-grsrv12-extra
iqn.2001-05.com.equallogic:0-8a0906-986f43402-520000002b447951-exchange
... (9 Replies)
Here's a regex substitution operation that has stumped me with sed:
How do you convert lines like this:
first.key ?{x.y.z}
second.key ?{xa.ys.zz.s}
third.key ?{xa.k}
to:
first.key ?{x_y_z}
second.key ?{xa_ys_zz_s}
third.key ?{xa_k}
So i'm basically converting all the... (11 Replies)
Ok then i Have a challenge for you :
Give me PS1 so that it always display the least 2 levels of directory
(except if i am above of course)
I want it this way :
so if i go to
/
/home/
/home/user
/home/user/whatever
/home/user/whatever1/whatever2
my PS1 should respectively... (12 Replies)
I've been given a directory full of subdirectories full of logfiles of the same name:
/logfiles/day1/file1/blockednodes.csv
day1-14
file1-48
The above is the actual directory structure for 14 days worth of a logfile that is generated every 30 minutes. It's been done this way to preserve the... (15 Replies)
Hi,
I am designing snake and ladder game in unix. I am writing my script in bash shell in Solaris version.
This game is designed by me for which I would like to give access to two players.
When these players execute the game, there should be communication between the three participants(game... (7 Replies)
I have searched through google, and this forum to try and find the answer, but alas, nothing quite hits the whole answer.
I am trying to read the last line (or lines) of some log files. I do this often.
The files are named sequentially, using the date as part of the file name, and appending... (18 Replies)
Discussion started by: BatterBits
18 Replies
LEARN ABOUT DEBIAN
game-data-packager
game-data-packager(6) Games Manual game-data-packager(6)NAME
game-data-packager - build a .deb of game data
SYNOPSIS
game-data-packager [ -i ] [ -d out-directory [ -n ] ] game [ game-options ]
DESCRIPTION
Many open-source games require game data which is licensed incompatibly with the Debian Free Software Guidelines. game-data-packager is a
tool designed to help you locally assemble Debian packages containing such game data from CD-ROMs, the Internet or elsewhere.
OPTIONS -i attempt to install the generated Debian package via dpkg(1) and su(1)-d out-directory
writes the generated Debian package to the specified directory.
-n Do not attempt to install the generated Debian package. This option must be used in conjunction with -d.
game The game being packaged. Running game-data-packager without arguments will display a list of valid games. Running game-data-packager
with just the game and no further arguments will display a list of valid options for that game.
SEE ALSO dpkg(1), su(1)AUTHOR
Copyright (C) 2010 Jon Dowland <jmtd@debian.org>
Thanks to Branden Robinson for his 'Write the Fine Manual' presentation, once found at <http://people.debian.org/~branden/talks/wtfm/>
2008-07-14 game-data-packager(6)