bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature request: allow shif [n] with n > $#


From: Toralf Förster
Subject: feature request: allow shif [n] with n > $#
Date: Thu, 11 Apr 2019 22:18:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Given:

$> cat <<EOF >shift.sh
#!/bin/bash
#

shift 3

echo ">>${@}<<"
EOF

then a call with less than 3 parameter, eg. "./shift.sh 1 2" gives ">>1 2<<". 
Whilst the man page does not deny this behaviour I do wonder if a feature 
request to get ">><<" instead is sufficient here?

-- 
Toralf
PGP C4EACDDE 0076E94E


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]