On Sun, Mar 08, 2015 at 11:21:41AM -0600, Eduardo A. Bustamante López wrote:
alias rs=IFS=\ $'\x09'$'\x0a'
The fuck? Just use
alias rs=IFS=\$' \t\n' or even better, alias rs='unset IFS'
rs() { IFS=$' \t\n'; }
Aliases... my god, why?
echo 1st try to split pth:
IFS=: echo $pth
This
Attached script shows a few examples
eventually it is split if the receiving var is already
an array, but you need to have saved and restore
IFS...
questions (at end of script)
why didn't statement pre-assignment work with
'echo' or 'let'?, but splitting assignment and
'echo' does work??
why
Your code is horrible. Why do you have to alias stuff like declare -p?
Anyways.
#!/bin/bash
echo Using:
bash --version|head -1
shopt -s expand_aliases
RA='declare -a'
alias rs=IFS=\ $'\x09'$'\x0a'
The fuck? Just use
alias rs=IFS=\$' \t\n' or even better, alias rs='unset IFS'
alias